summaryrefslogtreecommitdiff
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-01 04:53:22 +0000
committerChris Lattner <sabre@nondot.org>2010-04-01 04:53:22 +0000
commit73180c5355bff75b2d9b0e1349f0898e4e60fe89 (patch)
treeafb04d3561c22963d2d72cee541cb6395dd189cc /lib/AsmParser
parentfe805249f724629f1e90be81937274ea0ba78992 (diff)
downloadllvm-73180c5355bff75b2d9b0e1349f0898e4e60fe89.tar.gz
llvm-73180c5355bff75b2d9b0e1349f0898e4e60fe89.tar.bz2
llvm-73180c5355bff75b2d9b0e1349f0898e4e60fe89.tar.xz
no really, we don't need to copy strings around in the accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/LLLexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLLexer.h b/lib/AsmParser/LLLexer.h
index 3057992231..70f1cfdbfd 100644
--- a/lib/AsmParser/LLLexer.h
+++ b/lib/AsmParser/LLLexer.h
@@ -55,7 +55,7 @@ namespace llvm {
typedef SMLoc LocTy;
LocTy getLoc() const { return SMLoc::getFromPointer(TokStart); }
lltok::Kind getKind() const { return CurKind; }
- const std::string getStrVal() const { return StrVal; }
+ const std::string &getStrVal() const { return StrVal; }
const Type *getTyVal() const { return TyVal; }
unsigned getUIntVal() const { return UIntVal; }
const APSInt &getAPSIntVal() const { return APSIntVal; }