diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 10:07:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-11 10:07:44 +0000 |
commit | 29cf746aef63b1984c013448e843a290b2badf7b (patch) | |
tree | 4b25aa81693f3fcf64eefe5d1af93d8287e901e8 /include/clang/Frontend/CompilerInvocation.h | |
parent | 775bee71ad21c84bc130af22ac47c1c8e0f9e72f (diff) |
Add PreprocessorOutputOptions to CompilerInvocation, and move initialization to
clang-cc/Options.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInvocation.h')
-rw-r--r-- | include/clang/Frontend/CompilerInvocation.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index c2a66bdf1d..b217dca965 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -15,6 +15,7 @@ #include "clang/Frontend/DiagnosticOptions.h" #include "clang/Frontend/HeaderSearchOptions.h" #include "clang/Frontend/PreprocessorOptions.h" +#include "clang/Frontend/PreprocessorOutputOptions.h" #include "llvm/ADT/StringMap.h" #include <string> @@ -42,13 +43,13 @@ class CompilerInvocation { /// Options controlling the preprocessor (aside from #include handling). PreprocessorOptions PreprocessorOpts; + /// Options controlling preprocessed output. + PreprocessorOutputOptions PreprocessorOutputOpts; + /// The location for the output file. This is optional only for compiler /// invocations which have no output. std::string OutputFile; - /// Set of target-specific code generation features to enable/disable. - llvm::StringMap<bool> TargetFeatures; - public: CompilerInvocation() {} @@ -58,11 +59,6 @@ public: std::string &getOutputFile() { return OutputFile; } const std::string &getOutputFile() const { return OutputFile; } - llvm::StringMap<bool> &getTargetFeatures() { return TargetFeatures; } - const llvm::StringMap<bool> &getTargetFeatures() const { - return TargetFeatures; - } - /// @} /// @name Option Subgroups /// @{ @@ -88,6 +84,13 @@ public: return PreprocessorOpts; } + PreprocessorOutputOptions &getPreprocessorOutputOpts() { + return PreprocessorOutputOpts; + } + const PreprocessorOutputOptions &getPreprocessorOutputOpts() const { + return PreprocessorOutputOpts; + } + /// @} }; |