diff options
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Frontend/CompilerInvocation.h | 19 | ||||
-rw-r--r-- | include/clang/Frontend/Utils.h | 2 |
2 files changed, 12 insertions, 9 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; + } + /// @} }; diff --git a/include/clang/Frontend/Utils.h b/include/clang/Frontend/Utils.h index ffaaaea30b..d3a0b097f0 100644 --- a/include/clang/Frontend/Utils.h +++ b/include/clang/Frontend/Utils.h @@ -59,7 +59,7 @@ bool ProcessWarningOptions(Diagnostic &Diags, /// DoPrintPreprocessedInput - Implement -E mode. void DoPrintPreprocessedInput(Preprocessor &PP, llvm::raw_ostream* OS, - PreprocessorOutputOptions &Opts); + const PreprocessorOutputOptions &Opts); /// RewriteMacrosInInput - Implement -rewrite-macros mode. void RewriteMacrosInInput(Preprocessor &PP, llvm::raw_ostream* OS); |