diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 23:52:32 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 23:52:32 +0000 |
commit | 26266885d6eba8ee197577dd42a8e68a0e4dd2e8 (patch) | |
tree | 8ff1d1460dc996509d51ca61f561fe71b07ad772 /include/clang/Frontend/CompilerInvocation.h | |
parent | 80ac2358bbf3e18a941d54d481d372c7a0155199 (diff) |
Add FrontendOptions, and starting moving clang-cc to it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@87044 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, 9 insertions, 10 deletions
diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index 8a8b0fb000..fc0497a7ac 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -15,6 +15,7 @@ #include "clang/Frontend/AnalysisConsumer.h" #include "clang/Frontend/DependencyOutputOptions.h" #include "clang/Frontend/DiagnosticOptions.h" +#include "clang/Frontend/FrontendOptions.h" #include "clang/Frontend/HeaderSearchOptions.h" #include "clang/Frontend/PreprocessorOptions.h" #include "clang/Frontend/PreprocessorOutputOptions.h" @@ -42,6 +43,9 @@ class CompilerInvocation { /// Options controlling the diagnostic engine. DiagnosticOptions DiagOpts; + /// Options controlling the frontend itself. + FrontendOptions FrontendOpts; + /// Options controlling the #include directive. HeaderSearchOptions HeaderSearchOpts; @@ -54,19 +58,9 @@ class CompilerInvocation { /// 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; - public: CompilerInvocation() {} - /// @name Invidual Options - /// @{ - - std::string &getOutputFile() { return OutputFile; } - const std::string &getOutputFile() const { return OutputFile; } - /// @} /// @name Option Subgroups /// @{ @@ -96,6 +90,11 @@ public: return HeaderSearchOpts; } + FrontendOptions &getFrontendOpts() { return FrontendOpts; } + const FrontendOptions &getFrontendOpts() const { + return FrontendOpts; + } + LangOptions &getLangOpts() { return LangOpts; } const LangOptions &getLangOpts() const { return LangOpts; } |