aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/CompileOptions.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-26 05:00:52 +0000
committerChris Lattner <sabre@nondot.org>2009-03-26 05:00:52 +0000
commitbd3606426d389370616126af969904ec493cb105 (patch)
treea3323b1dda81405be821f46ec5c41e420104c0da /include/clang/Frontend/CompileOptions.h
parente062533e298f72d970b2aa99cd0e3818b20d73df (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/Frontend/CompileOptions.h')
-rw-r--r--include/clang/Frontend/CompileOptions.h2
1 files changed, 2 insertions, 0 deletions
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;
}
};