diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-02-14 08:09:20 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-02-14 08:09:20 +0000 |
| commit | c86a2f39a9c3afaa61dce86e4d06d63900c3843b (patch) | |
| tree | 540644fbd46978f994f21390c7aa4bad5328e75f /clang/lib/CodeGen/CodeGenModule.h | |
| parent | 039fa75e4d52d113bd0e7dbbd2be4dec4207dbf3 (diff) | |
| download | bcm5719-llvm-c86a2f39a9c3afaa61dce86e4d06d63900c3843b.tar.gz bcm5719-llvm-c86a2f39a9c3afaa61dce86e4d06d63900c3843b.zip | |
Pass the target options through to code generation.
The code generation stuff is going to set attributes on the functions it
generates. To do that it needs the target options. Pass them through.
llvm-svn: 175141
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 60106e0f204..f467ee79d49 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -65,6 +65,7 @@ namespace clang { class VarDecl; class LangOptions; class CodeGenOptions; + class TargetOptions; class DiagnosticsEngine; class AnnotateAttr; class CXXDestructorDecl; @@ -222,6 +223,7 @@ class CodeGenModule : public CodeGenTypeCache { ASTContext &Context; const LangOptions &LangOpts; const CodeGenOptions &CodeGenOpts; + const TargetOptions &TargetOpts; llvm::Module &TheModule; const llvm::DataLayout &TheDataLayout; mutable const TargetCodeGenInfo *TheTargetCodeGenInfo; @@ -378,8 +380,8 @@ class CodeGenModule : public CodeGenTypeCache { /// @} public: CodeGenModule(ASTContext &C, const CodeGenOptions &CodeGenOpts, - llvm::Module &M, const llvm::DataLayout &TD, - DiagnosticsEngine &Diags); + const TargetOptions &TargetOpts, llvm::Module &M, + const llvm::DataLayout &TD, DiagnosticsEngine &Diags); ~CodeGenModule(); |

