diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-29 02:38:34 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-29 02:38:34 +0000 |
commit | 7d065d0f21b35f445cee13730398bc2bec6edff2 (patch) | |
tree | b5613c24902adb360cb947ce924a85f2a3afdfc2 /include/clang/CodeGen | |
parent | 85b4521e34dcd4a0a4a1f0819e1123128e5a3125 (diff) |
Move MainFileName option variable into CodeGenOptions instead of LangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/CodeGen')
-rw-r--r-- | include/clang/CodeGen/CodeGenOptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/CodeGen/CodeGenOptions.h b/include/clang/CodeGen/CodeGenOptions.h index 02679cd998..4fd80dd4d2 100644 --- a/include/clang/CodeGen/CodeGenOptions.h +++ b/include/clang/CodeGen/CodeGenOptions.h @@ -52,6 +52,11 @@ public: /// Inlining - The kind of inlining to perform. InliningMethod Inlining; + /// The user provided name for the "main file", if non-empty. This is useful + /// in situations where the input file name does not match the original input + /// file, for example with -save-temps. + std::string MainFileName; + public: CodeGenOptions() { OptimizationLevel = 0; |