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/ModuleManager.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/ModuleManager.cpp')
-rw-r--r-- | clang/lib/Serialization/ModuleManager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 8f1473f3a3a..ac98ca0b872 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -13,7 +13,6 @@ //===----------------------------------------------------------------------===// #include "clang/Lex/HeaderSearch.h" #include "clang/Lex/ModuleMap.h" -#include "clang/Serialization/ASTReader.h" #include "clang/Serialization/GlobalModuleIndex.h" #include "clang/Serialization/ModuleManager.h" #include "llvm/Support/MemoryBuffer.h" @@ -136,10 +135,10 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, New->Buffer = std::move(*Buf); } - - // Initialize the stream. - ASTReader::InitStreamFileWithModule(New->Buffer->getMemBufferRef(), - New->StreamFile); + + // Initialize the stream + New->StreamFile.init((const unsigned char *)New->Buffer->getBufferStart(), + (const unsigned char *)New->Buffer->getBufferEnd()); } if (ExpectedSignature) { |