diff options
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 2 | ||||
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index 065fc44805..fc27bb9cdf 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -467,7 +467,7 @@ public: const FileSystemOptions &getFileSystemOpts() const { return FileSystemOpts; } - const std::string &getOriginalSourceFileName() { + const StringRef getOriginalSourceFileName() { return OriginalSourceFile; } diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index 36eae76728..c0d93c3607 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -900,7 +900,7 @@ private: /// into account all the necessary relocations. const FileEntry *getFileEntry(StringRef filename); - StringRef MaybeAddSystemRootToFilename(ModuleFile &M, std::string &Filename); + void MaybeAddSystemRootToFilename(ModuleFile &M, std::string &Filename); ASTReadResult ReadASTCore(StringRef FileName, ModuleKind Type, ModuleFile *ImportedBy, @@ -1163,7 +1163,7 @@ public: /// \brief Retrieve the name of the original source file name for the primary /// module file. - const std::string &getOriginalSourceFile() { + StringRef getOriginalSourceFile() { return ModuleMgr.getPrimaryModule().OriginalSourceFileName; } |