diff options
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index f746edb65f..f95024dd88 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -76,6 +76,11 @@ private: // signed. Set/Query this value using accessors. unsigned SymbolVisibility : 3; // Symbol's visibility. + /// The user provided name for the "main file", if non-null. This is + /// useful in situations where the input file name does not match + /// the original input file, for example with -save-temps. + const char *MainFileName; + public: unsigned InstantiationDepth; // Maximum template instantiation depth. @@ -110,11 +115,16 @@ public: OptimizeSize = 0; PICLevel = 0; + + MainFileName = 0; } GCMode getGCMode() const { return (GCMode) GC; } void setGCMode(GCMode m) { GC = (unsigned) m; } + const char *getMainFileName() const { return MainFileName; } + void setMainFileName(const char *Name) { MainFileName = Name; } + VisibilityMode getVisibilityMode() const { return (VisibilityMode) SymbolVisibility; } void setVisibilityMode(VisibilityMode v) { SymbolVisibility = (unsigned) v; } |