diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-26 05:00:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-26 05:00:52 +0000 |
commit | bd3606426d389370616126af969904ec493cb105 (patch) | |
tree | a3323b1dda81405be821f46ec5c41e420104c0da /include/clang | |
parent | e062533e298f72d970b2aa99cd0e3818b20d73df (diff) |
most of this is plumbing to get CompileOptions down into
CodeGenModule. Once there, add a new NoCommon option to
it and implement -fno-common.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/CodeGen/ModuleBuilder.h | 6 | ||||
-rw-r--r-- | include/clang/Frontend/CompileOptions.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h index b9f9d14540..5812da1b56 100644 --- a/include/clang/CodeGen/ModuleBuilder.h +++ b/include/clang/CodeGen/ModuleBuilder.h @@ -24,6 +24,7 @@ namespace llvm { namespace clang { class Diagnostic; class LangOptions; + class CompileOptions; class CodeGenerator : public ASTConsumer { public: @@ -32,9 +33,8 @@ namespace clang { }; CodeGenerator *CreateLLVMCodeGen(Diagnostic &Diags, - const LangOptions &Features, - const std::string& ModuleName, - bool GenerateDebugInfo); + const std::string &ModuleName, + const CompileOptions &CO); } #endif diff --git a/include/clang/Frontend/CompileOptions.h b/include/clang/Frontend/CompileOptions.h index 86092708c7..1af5e48ea1 100644 --- a/include/clang/Frontend/CompileOptions.h +++ b/include/clang/Frontend/CompileOptions.h @@ -35,6 +35,7 @@ public: unsigned VerifyModule : 1; /// Control whether the module /// should be run through the LLVM Verifier. unsigned TimePasses : 1; /// Set when -ftime-report is enabled. + unsigned NoCommon : 1; /// Set when -fno-common or C++ is enabled. /// CPU - An optional CPU to target. std::string CPU; @@ -52,6 +53,7 @@ public: InlineFunctions = SimplifyLibCalls = UnrollLoops = 0; VerifyModule = 1; TimePasses = 0; + NoCommon = 0; } }; |