summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-01 20:23:19 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-01 20:23:19 +0000
commit7018d5bcfb48502c5ab7d9bc89eb3d41dd8fb76d (patch)
tree8beb4c56592139275ffe69042526045cd0c85b50 /clang/lib/Lex/Preprocessor.cpp
parent415e47dd6e51565fbddcc4974fd77e6f3b2aeabc (diff)
downloadbcm5719-llvm-7018d5bcfb48502c5ab7d9bc89eb3d41dd8fb76d.tar.gz
bcm5719-llvm-7018d5bcfb48502c5ab7d9bc89eb3d41dd8fb76d.zip
Teach ASTContext and Preprocessor to hold on to references to the same
LangOptions, rather than making distinct copies of LangOptions. Granted, LangOptions doesn't actually get modified, but this will eventually make it easier to construct ASTContext and Preprocessor before we know all of the LangOptions. llvm-svn: 138959
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index b285660c085..f00349081cd 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -49,7 +49,7 @@ using namespace clang;
//===----------------------------------------------------------------------===//
ExternalPreprocessorSource::~ExternalPreprocessorSource() { }
-Preprocessor::Preprocessor(Diagnostic &diags, const LangOptions &opts,
+Preprocessor::Preprocessor(Diagnostic &diags, LangOptions &opts,
const TargetInfo &target, SourceManager &SM,
HeaderSearch &Headers, ModuleLoader &TheModuleLoader,
IdentifierInfoLookup* IILookup,
OpenPOWER on IntegriCloud