aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/CodeGen/ModuleBuilder.h6
-rw-r--r--include/clang/Frontend/CompileOptions.h2
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;
}
};