summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/AsmParser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-24 00:33:19 +0000
committerChris Lattner <sabre@nondot.org>2009-06-24 00:33:19 +0000
commit4c501fc196ad70db16d167b4998c8f81d9303ec1 (patch)
treed89968d8799c23932a4626dc0bffe508368c8361 /llvm/tools/llvm-mc/AsmParser.cpp
parent6994293b17a3f6bb688e89712624ce3a278fcdb1 (diff)
downloadbcm5719-llvm-4c501fc196ad70db16d167b4998c8f81d9303ec1.tar.gz
bcm5719-llvm-4c501fc196ad70db16d167b4998c8f81d9303ec1.zip
make the lexer unique strings it lexes instead of passing them back as
std::strings. llvm-svn: 74036
Diffstat (limited to 'llvm/tools/llvm-mc/AsmParser.cpp')
-rw-r--r--llvm/tools/llvm-mc/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mc/AsmParser.cpp b/llvm/tools/llvm-mc/AsmParser.cpp
index c9d20718911..4dd136d0086 100644
--- a/llvm/tools/llvm-mc/AsmParser.cpp
+++ b/llvm/tools/llvm-mc/AsmParser.cpp
@@ -179,7 +179,7 @@ bool AsmParser::ParseStatement() {
// If we have an identifier, handle it as the key symbol.
SMLoc IDLoc = Lexer.getLoc();
- std::string IDVal = Lexer.getCurStrVal();
+ const char *IDVal = Lexer.getCurStrVal();
// Consume the identifier, see what is after it.
if (Lexer.Lex() == asmtok::Colon) {
OpenPOWER on IntegriCloud