diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 02:53:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 02:53:59 +0000 |
commit | b3cb98ee35b4707c59d7f6d1a6ee2eee95cb7eb5 (patch) | |
tree | 5cfad4674b38595177286b479c90fb1c920d3b27 /include/clang/Frontend/PreprocessorOptions.h | |
parent | 3574f46cf495ec61618fd6864b045c5b1d0d5068 (diff) |
Move TokenCache option to PreprocessorOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86940 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PreprocessorOptions.h')
-rw-r--r-- | include/clang/Frontend/PreprocessorOptions.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Frontend/PreprocessorOptions.h b/include/clang/Frontend/PreprocessorOptions.h index b918a744a2..6ae6843ee6 100644 --- a/include/clang/Frontend/PreprocessorOptions.h +++ b/include/clang/Frontend/PreprocessorOptions.h @@ -37,6 +37,9 @@ class PreprocessorOptions { /// empty. std::string ImplicitPTHInclude; + /// If given, a PTH cache file to use for speeding up header parsing. + std::string TokenCache; + public: PreprocessorOptions() : UsePredefines(true) {} @@ -63,6 +66,13 @@ public: ImplicitPTHInclude = Value; } + const std::string &getTokenCache() const { + return TokenCache; + } + void setTokenCache(llvm::StringRef Value) { + TokenCache = Value; + } + void addMacroDef(llvm::StringRef Name) { Macros.push_back(std::make_pair(Name, false)); } |