Revert "Wrap clang module files in a Mach-O, ELF, or COFF container."
This reverts commit 230099. The Linux configure+make build variant still needs some work. llvm-svn: 230103
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user