From dba4346e91b9b5d85707c320bdf31c98ce713f7f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Apr 2010 04:53:22 +0000 Subject: no really, we don't need to copy strings around in the accessor. llvm-svn: 100083 --- llvm/lib/AsmParser/LLLexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/AsmParser') 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; } -- cgit v1.2.3