diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-07-03 22:40:07 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-07-03 22:40:07 +0000 |
commit | e0308279cbdd18391c533d6501922429ff4ef839 (patch) | |
tree | c2386ec9a73920d3d86f09116473884c388e7b8d /clang-tools-extra | |
parent | e0afcd8d266ed4fa9d3793d0032623f0aa12b80a (diff) | |
download | bcm5719-llvm-e0308279cbdd18391c533d6501922429ff4ef839.tar.gz bcm5719-llvm-e0308279cbdd18391c533d6501922429ff4ef839.zip |
[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
llvm-svn: 365091
Diffstat (limited to 'clang-tools-extra')
-rw-r--r-- | clang-tools-extra/clang-doc/BitcodeReader.h | 2 | ||||
-rw-r--r-- | clang-tools-extra/clang-doc/BitcodeWriter.h | 2 | ||||
-rw-r--r-- | clang-tools-extra/clang-doc/CMakeLists.txt | 3 | ||||
-rw-r--r-- | clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp | 4 | ||||
-rw-r--r-- | clang-tools-extra/unittests/clang-doc/CMakeLists.txt | 3 |
5 files changed, 6 insertions, 8 deletions
diff --git a/clang-tools-extra/clang-doc/BitcodeReader.h b/clang-tools-extra/clang-doc/BitcodeReader.h index 2642a2c7371..18b9521c32e 100644 --- a/clang-tools-extra/clang-doc/BitcodeReader.h +++ b/clang-tools-extra/clang-doc/BitcodeReader.h @@ -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 { diff --git a/clang-tools-extra/clang-doc/BitcodeWriter.h b/clang-tools-extra/clang-doc/BitcodeWriter.h index c342d34f9f1..a55bdd90f0d 100644 --- a/clang-tools-extra/clang-doc/BitcodeWriter.h +++ b/clang-tools-extra/clang-doc/BitcodeWriter.h @@ -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> diff --git a/clang-tools-extra/clang-doc/CMakeLists.txt b/clang-tools-extra/clang-doc/CMakeLists.txt index 1d70bb08fea..a2123989e54 100644 --- a/clang-tools-extra/clang-doc/CMakeLists.txt +++ b/clang-tools-extra/clang-doc/CMakeLists.txt @@ -1,7 +1,6 @@ set(LLVM_LINK_COMPONENTS support - BitReader - BitWriter + BitstreamReader ) add_clang_library(clangDoc diff --git a/clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp b/clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp index a22f8af7394..c2bfd6325c2 100644 --- a/clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp +++ b/clang-tools-extra/unittests/clang-doc/BitcodeTest.cpp @@ -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 { diff --git a/clang-tools-extra/unittests/clang-doc/CMakeLists.txt b/clang-tools-extra/unittests/clang-doc/CMakeLists.txt index 11331acdcac..7e3746fa8d1 100644 --- a/clang-tools-extra/unittests/clang-doc/CMakeLists.txt +++ b/clang-tools-extra/unittests/clang-doc/CMakeLists.txt @@ -1,7 +1,6 @@ set(LLVM_LINK_COMPONENTS support - BitReader - BitWriter + BitstreamReader ) get_filename_component(CLANG_DOC_SOURCE_DIR |