[llvm-commits] [llvm] r100542 - /llvm/trunk/include/llvm/Support/SourceMgr.h
Chris Lattner
sabre at nondot.org
Tue Apr 6 11:37:22 PDT 2010
Author: lattner
Date: Tue Apr 6 13:37:22 2010
New Revision: 100542
URL: http://llvm.org/viewvc/llvm-project?rev=100542&view=rev
Log:
this accessor doesn't need to copy the string.
Modified:
llvm/trunk/include/llvm/Support/SourceMgr.h
Modified: llvm/trunk/include/llvm/Support/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/SourceMgr.h?rev=100542&r1=100541&r2=100542&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/SourceMgr.h (original)
+++ llvm/trunk/include/llvm/Support/SourceMgr.h Tue Apr 6 13:37:22 2010
@@ -174,7 +174,7 @@
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; }
More information about the llvm-commits
mailing list