summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitdba4346e91b9b5d85707c320bdf31c98ce713f7f (patch)
treed05d655b5d75b9358dbffa4b1573e8a244ebbc18 /llvm/lib/AsmParser
parentef0ec996654fb6a67f4adf534493f9c7e096bc01 (diff)
downloadbcm5719-llvm-dba4346e91b9b5d85707c320bdf31c98ce713f7f.tar.gz
bcm5719-llvm-dba4346e91b9b5d85707c320bdf31c98ce713f7f.zip
no really, we don't need to copy strings around in the accessor.
llvm-svn: 100083
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLLexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLLexer.h b/llvm/lib/AsmParser/LLLexer.h
index 3057992231b..70f1cfdbfd8 100644
--- a/llvm/lib/AsmParser/LLLexer.h
+++ b/llvm/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; }
OpenPOWER on IntegriCloud