[llvm-commits] [llvm] r100083 - /llvm/trunk/lib/AsmParser/LLLexer.h
Chris Lattner
sabre at nondot.org
Wed Mar 31 21:53:22 PDT 2010
Author: lattner
Date: Wed Mar 31 23:53:22 2010
New Revision: 100083
URL: http://llvm.org/viewvc/llvm-project?rev=100083&view=rev
Log:
no really, we don't need to copy strings around in the accessor.
Modified:
llvm/trunk/lib/AsmParser/LLLexer.h
Modified: llvm/trunk/lib/AsmParser/LLLexer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLLexer.h?rev=100083&r1=100082&r2=100083&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLLexer.h (original)
+++ llvm/trunk/lib/AsmParser/LLLexer.h Wed Mar 31 23:53:22 2010
@@ -55,7 +55,7 @@
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; }
More information about the llvm-commits
mailing list