projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b019491
)
this accessor doesn't need to copy the string.
author
Chris Lattner
<sabre@nondot.org>
Tue, 6 Apr 2010 18:37:22 +0000
(18:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 6 Apr 2010 18:37:22 +0000
(18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100542
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/SourceMgr.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/SourceMgr.h
b/include/llvm/Support/SourceMgr.h
index 857d4d4d7bed95faeec508feb291a8f968bbd37b..9cd35d1f93116b97eaf2a08db7fae4a028e5b0a9 100644
(file)
--- a/
include/llvm/Support/SourceMgr.h
+++ b/
include/llvm/Support/SourceMgr.h
@@
-174,7
+174,7
@@
public:
const SourceMgr *getSourceMgr() const { return SM; }
SMLoc getLoc() const { return Loc; }
- const std::string getFilename() { return Filename; }
+ const std::string
&
getFilename() { return Filename; }
int getLineNo() const { return LineNo; }
int getColumnNo() const { return ColumnNo; }
const std::string &getMessage() const { return Message; }