projects
/
clang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4e0d7f
)
Use StringRef instead of raw pointer in SourceManagerInternals LineTableInfo API...
author
Mehdi Amini
<mehdi.amini@apple.com>
Tue, 11 Oct 2016 15:15:32 +0000
(15:15 +0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Tue, 11 Oct 2016 15:15:32 +0000
(15:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283888
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/clang/Basic/SourceManagerInternals.h
patch
|
blob
|
history
diff --git
a/include/clang/Basic/SourceManagerInternals.h
b/include/clang/Basic/SourceManagerInternals.h
index 27dea9f84b5ac3bf7dd119ad2fde02a7a90b3d53..e65c97b0031d6dc593a15c318d7d83dbb4f6d1cf 100644
(file)
--- a/
include/clang/Basic/SourceManagerInternals.h
+++ b/
include/clang/Basic/SourceManagerInternals.h
@@
-95,9
+95,9
@@
public:
}
unsigned getLineTableFilenameID(StringRef Str);
-
const char *
getFilename(unsigned ID) const {
+
StringRef
getFilename(unsigned ID) const {
assert(ID < FilenamesByID.size() && "Invalid FilenameID");
- return FilenamesByID[ID]->getKey
Data
();
+ return FilenamesByID[ID]->getKey();
}
unsigned getNumFilenames() const { return FilenamesByID.size(); }