diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-24 17:01:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-24 17:01:35 +0000 |
commit | e81699d938f43085af66ac6681bf40c593670049 (patch) | |
tree | 20c0623cafed331c292ef1fc82b80793edc50c27 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2d30236d1627e63bb770ad0861d0b6d5b946617a (diff) | |
download | bcm5719-llvm-e81699d938f43085af66ac6681bf40c593670049.tar.gz bcm5719-llvm-e81699d938f43085af66ac6681bf40c593670049.zip |
Move PreprocessorOptions into the Lex library, and make it intrusively
reference-counted.
llvm-svn: 166587
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index b941609318b..78dc0d5fb04 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -37,14 +37,16 @@ using namespace clang; CompilerInvocationBase::CompilerInvocationBase() : LangOpts(new LangOptions()), TargetOpts(new TargetOptions()), DiagnosticOpts(new DiagnosticOptions()), - HeaderSearchOpts(new HeaderSearchOptions()) {} + HeaderSearchOpts(new HeaderSearchOptions()), + PreprocessorOpts(new PreprocessorOptions()) {} CompilerInvocationBase::CompilerInvocationBase(const CompilerInvocationBase &X) : RefCountedBase<CompilerInvocation>(), LangOpts(new LangOptions(*X.getLangOpts())), TargetOpts(new TargetOptions(X.getTargetOpts())), DiagnosticOpts(new DiagnosticOptions(X.getDiagnosticOpts())), - HeaderSearchOpts(new HeaderSearchOptions(X.getHeaderSearchOpts())) {} + HeaderSearchOpts(new HeaderSearchOptions(X.getHeaderSearchOpts())), + PreprocessorOpts(new PreprocessorOptions(X.getPreprocessorOpts())) {} //===----------------------------------------------------------------------===// // Utility functions. |