aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-10 17:50:53 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-10 17:50:53 +0000
commit8d35314401047092eb97b989ed930967ed9e8ccc (patch)
tree38952f6c436a547f0124ce9979fc870eb982c5a6 /include/clang/Frontend
parentbc2ea3406bf29ade6ac2329181890c2f352c0700 (diff)
Localize -disable-llvm-optzns handling to BackendConsumer::CreatePasses.
- This is conceptually better since the only thing we want this option to do is preserve the internal module as constructed by IRgen, before running any passes. - This also fixes bugs in -disable-llvm-optzns handling with regards to debug info. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend')
-rw-r--r--include/clang/Frontend/CompileOptions.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/clang/Frontend/CompileOptions.h b/include/clang/Frontend/CompileOptions.h
index ad53a8d592..2e8cfddf18 100644
--- a/include/clang/Frontend/CompileOptions.h
+++ b/include/clang/Frontend/CompileOptions.h
@@ -43,8 +43,12 @@ public:
unsigned NoCommon : 1; /// Set when -fno-common or C++ is enabled.
unsigned DisableRedZone : 1; /// Set when -mno-red-zone is enabled.
unsigned NoImplicitFloat : 1; /// Set when -mno-implicit-float is enabled.
- unsigned MergeAllConstants : 1; // Merge identical constants.
-
+ unsigned MergeAllConstants : 1; /// Merge identical constants.
+ unsigned DisableLLVMOpts : 1; /// Don't run any optimizations, for use in
+ /// getting .bc files that correspond to the
+ /// internal state before optimizations are
+ /// done.
+
/// Inlining - The kind of inlining to perform.
InliningMethod Inlining;
@@ -69,6 +73,7 @@ public:
DisableRedZone = 0;
NoImplicitFloat = 0;
MergeAllConstants = 1;
+ DisableLLVMOpts = 0;
}
};