LLVM API Change: the Module always owns the DataLayout
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 243115
This commit is contained in:
@@ -75,9 +75,8 @@ public:
|
||||
VMContext.reset(new llvm::LLVMContext());
|
||||
M.reset(new llvm::Module(MainFileName, *VMContext));
|
||||
M->setDataLayout(Ctx->getTargetInfo().getTargetDescription());
|
||||
Builder.reset(new CodeGen::CodeGenModule(*Ctx, HeaderSearchOpts,
|
||||
PreprocessorOpts, CodeGenOpts, *M,
|
||||
M->getDataLayout(), Diags));
|
||||
Builder.reset(new CodeGen::CodeGenModule(
|
||||
*Ctx, HeaderSearchOpts, PreprocessorOpts, CodeGenOpts, *M, Diags));
|
||||
}
|
||||
|
||||
/// Emit a container holding the serialized AST.
|
||||
|
||||
Reference in New Issue
Block a user