[cfe-commits] r45003 - /cfe/trunk/Driver/ASTConsumers.cpp
Chris Lattner
sabre at nondot.org
Thu Dec 13 09:34:31 PST 2007
Author: lattner
Date: Thu Dec 13 11:34:31 2007
New Revision: 45003
URL: http://llvm.org/viewvc/llvm-project?rev=45003&view=rev
Log:
Set target data layout info in module.
Modified:
cfe/trunk/Driver/ASTConsumers.cpp
Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=45003&r1=45002&r2=45003&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Thu Dec 13 11:34:31 2007
@@ -570,6 +570,7 @@
Ctx = &Context;
M = new llvm::Module("foo");
M->setTargetTriple(Ctx->Target.getTargetTriple());
+ M->setDataLayout(Ctx->Target.getTargetDescription());
TD = new llvm::TargetData(Ctx->Target.getTargetDescription());
Builder = CodeGen::Init(Context, Features, *M, *TD, Diags);
}
More information about the cfe-commits
mailing list