diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-02-20 22:12:19 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-02-20 22:12:19 +0000 |
commit | 690b2f7746ffd37ee507618a5bc17a5799671417 (patch) | |
tree | f5459d0bc51251d9d27cb3c8eb6bba2b8e90c148 /clang/lib/Serialization/GlobalModuleIndex.cpp | |
parent | 20711b7baebab2eeb51015453588c46d8b9d62e9 (diff) | |
download | bcm5719-llvm-690b2f7746ffd37ee507618a5bc17a5799671417.tar.gz bcm5719-llvm-690b2f7746ffd37ee507618a5bc17a5799671417.zip |
Revert "Wrap clang module files in a Mach-O, ELF, or COFF container."
This reverts commit r230067.
Investigating another batch of problems found by the bots.
llvm-svn: 230073
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
-rw-r--r-- | clang/lib/Serialization/GlobalModuleIndex.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Serialization/GlobalModuleIndex.cpp b/clang/lib/Serialization/GlobalModuleIndex.cpp index 68a23ea870d..47913880454 100644 --- a/clang/lib/Serialization/GlobalModuleIndex.cpp +++ b/clang/lib/Serialization/GlobalModuleIndex.cpp @@ -15,7 +15,6 @@ #include "clang/Basic/FileManager.h" #include "clang/Lex/HeaderSearch.h" #include "clang/Serialization/ASTBitCodes.h" -#include "clang/Serialization/ASTReader.h" #include "clang/Serialization/GlobalModuleIndex.h" #include "clang/Serialization/Module.h" #include "llvm/ADT/DenseMap.h" @@ -502,8 +501,8 @@ bool GlobalModuleIndexBuilder::loadModuleFile(const FileEntry *File) { // Initialize the input stream llvm::BitstreamReader InStreamFile; - ASTReader::InitStreamFileWithModule((*Buffer)->getMemBufferRef(), - InStreamFile); + InStreamFile.init((const unsigned char *)(*Buffer)->getBufferStart(), + (const unsigned char *)(*Buffer)->getBufferEnd()); llvm::BitstreamCursor InStream(InStreamFile); // Sniff for the signature. |