diff options
author | John McCall <rjmccall@apple.com> | 2010-03-04 00:23:29 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-03-04 00:23:29 +0000 |
commit | c9fe644675503894e9e76e8ecd8e6519426548de (patch) | |
tree | ff130be72fa30cac9af308e4eedb57d8c647d818 /include/clang/CodeGen/ModuleBuilder.h | |
parent | 5fccd36204f11c8491325038e6ffcc784399098e (diff) |
Create a TargetMachine whenever we create a CodeGenAction. The codegen of
some builtins will rely on target knowledge.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r-- | include/clang/CodeGen/ModuleBuilder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h index 2a3aa6a904..40669926e2 100644 --- a/include/clang/CodeGen/ModuleBuilder.h +++ b/include/clang/CodeGen/ModuleBuilder.h @@ -20,6 +20,7 @@ namespace llvm { class LLVMContext; class Module; + class TargetMachine; } namespace clang { @@ -36,6 +37,7 @@ namespace clang { CodeGenerator *CreateLLVMCodeGen(Diagnostic &Diags, const std::string &ModuleName, const CodeGenOptions &CGO, + const llvm::TargetMachine &Machine, llvm::LLVMContext& C); } |