aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/PreprocessorOptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Frontend/PreprocessorOptions.h')
-rw-r--r--include/clang/Frontend/PreprocessorOptions.h10
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));
}