diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-30 00:38:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-30 00:38:13 +0000 |
commit | 848bc3a5db57fb267e2b2541cb55e71dba4bf228 (patch) | |
tree | 1f8577ca9c7f810189c84e38831619e24633556c /include/clang/Frontend/ASTUnit.h | |
parent | 33e1576ef88ae6fcc4ed8686f34ed28b1a41bcce (diff) |
getOriginalSourceFileName and getOriginalSourceFile can return a StringRef.
MaybeAddSystemRootToFilename doesn't need to return anything, it modifies
its argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/ASTUnit.h')
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 2 |
1 files changed, 1 insertions, 1 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; } |