Author: thegameg Date: Wed Jul 3 15:40:07 2019 New Revision: 365091 URL: http://llvm.org/viewvc/llvm-project?rev=365091&view=rev Log: [Bitcode] Move Bitstream to a separate library
This moves Bitcode/Bitstream*, Bitcode/BitCodes.h to Bitstream/. This is needed to avoid a circular dependency when using the bitstream code for parsing optimization remarks. Since Bitcode uses Core for the IR part: libLLVMRemarks -> Bitcode -> Core and Core uses libLLVMRemarks to generate remarks (see IR/RemarkStreamer.cpp): Core -> libLLVMRemarks we need to separate the Bitstream and Bitcode part. For clang-doc, it seems that it doesn't need the whole bitcode layer, so I updated the CMake to only use the bitstream part. Differential Revision: https://reviews.llvm.org/D63899 Modified: clang-tools-extra/trunk/clang-doc/BitcodeReader.h clang-tools-extra/trunk/clang-doc/BitcodeWriter.h clang-tools-extra/trunk/clang-doc/CMakeLists.txt clang-tools-extra/trunk/unittests/clang-doc/BitcodeTest.cpp clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt Modified: clang-tools-extra/trunk/clang-doc/BitcodeReader.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/BitcodeReader.h?rev=365091&r1=365090&r2=365091&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-doc/BitcodeReader.h (original) +++ clang-tools-extra/trunk/clang-doc/BitcodeReader.h Wed Jul 3 15:40:07 2019 @@ -20,7 +20,7 @@ #include "clang/AST/AST.h" #include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallVector.h" -#include "llvm/Bitcode/BitstreamReader.h" +#include "llvm/Bitstream/BitstreamReader.h" #include "llvm/Support/Error.h" namespace clang { Modified: clang-tools-extra/trunk/clang-doc/BitcodeWriter.h URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/BitcodeWriter.h?rev=365091&r1=365090&r2=365091&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-doc/BitcodeWriter.h (original) +++ clang-tools-extra/trunk/clang-doc/BitcodeWriter.h Wed Jul 3 15:40:07 2019 @@ -20,7 +20,7 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" -#include "llvm/Bitcode/BitstreamWriter.h" +#include "llvm/Bitstream/BitstreamWriter.h" #include <initializer_list> #include <vector> Modified: clang-tools-extra/trunk/clang-doc/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-doc/CMakeLists.txt?rev=365091&r1=365090&r2=365091&view=diff ============================================================================== --- clang-tools-extra/trunk/clang-doc/CMakeLists.txt (original) +++ clang-tools-extra/trunk/clang-doc/CMakeLists.txt Wed Jul 3 15:40:07 2019 @@ -1,7 +1,6 @@ set(LLVM_LINK_COMPONENTS support - BitReader - BitWriter + BitstreamReader ) add_clang_library(clangDoc Modified: clang-tools-extra/trunk/unittests/clang-doc/BitcodeTest.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-doc/BitcodeTest.cpp?rev=365091&r1=365090&r2=365091&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/clang-doc/BitcodeTest.cpp (original) +++ clang-tools-extra/trunk/unittests/clang-doc/BitcodeTest.cpp Wed Jul 3 15:40:07 2019 @@ -10,8 +10,8 @@ #include "BitcodeWriter.h" #include "ClangDocTest.h" #include "Representation.h" -#include "llvm/Bitcode/BitstreamReader.h" -#include "llvm/Bitcode/BitstreamWriter.h" +#include "llvm/Bitstream/BitstreamReader.h" +#include "llvm/Bitstream/BitstreamWriter.h" #include "gtest/gtest.h" namespace clang { Modified: clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt?rev=365091&r1=365090&r2=365091&view=diff ============================================================================== --- clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt (original) +++ clang-tools-extra/trunk/unittests/clang-doc/CMakeLists.txt Wed Jul 3 15:40:07 2019 @@ -1,7 +1,6 @@ set(LLVM_LINK_COMPONENTS support - BitReader - BitWriter + BitstreamReader ) get_filename_component(CLANG_DOC_SOURCE_DIR _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits