diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-06 18:37:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-06 18:37:22 +0000 |
commit | 779804353d40dff90fea50cda57e18f459b66f5f (patch) | |
tree | 35d7c34a7a066260e57fafa112fd9357bb25e669 /include/llvm/Support/SourceMgr.h | |
parent | b019491b8d7b171cd0835ba34f3b28b24dfcc3e0 (diff) |
this accessor doesn't need to copy the string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/SourceMgr.h')
-rw-r--r-- | include/llvm/Support/SourceMgr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/SourceMgr.h b/include/llvm/Support/SourceMgr.h index 857d4d4d7b..9cd35d1f93 100644 --- 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; } |