aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-22 23:13:42 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-22 23:13:42 +0000
commitba1e898c64048e25cb65afec3807ad463e41914b (patch)
tree5005adb5ea6a507624e1a98da8d694f8c4507671 /include/clang/Lex/Preprocessor.h
parent0979d80615df97c675423de631c1b884819f4712 (diff)
Change Preprocessor to keep a copy of LangOptions instead of reference, like ASTContext.
Now when creating a Preprocessor we can pass it a temporary LangOptions object instead of having to remember to keep it around. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 6d5ed72455..f1647afaa3 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -49,7 +49,7 @@ class DirectoryLookup;
///
class Preprocessor {
Diagnostic *Diags;
- const LangOptions &Features;
+ LangOptions Features;
TargetInfo &Target;
FileManager &FileMgr;
SourceManager &SourceMgr;