diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-07-24 16:04:29 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-07-24 16:04:29 +0000 |
commit | ca3cf9e6ff1f4b9f64f51c783ac8cc459090cd4f (patch) | |
tree | e4a2430db1b1e63e25652f56e79fba86dca9073a /clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | |
parent | 26d481311a6e8c6f347f2fdb259399f60a74209e (diff) | |
download | llvm-ca3cf9e6ff1f4b9f64f51c783ac8cc459090cd4f.zip llvm-ca3cf9e6ff1f4b9f64f51c783ac8cc459090cd4f.tar.gz llvm-ca3cf9e6ff1f4b9f64f51c783ac8cc459090cd4f.tar.bz2 |
LLVM API Change: the Module always owns the DataLayout
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 243115
Diffstat (limited to 'clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp')
-rw-r--r-- | clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index 9c9b123..629cac1 100644 --- a/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -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. |