diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-24 00:33:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-24 00:33:19 +0000 |
commit | faf32c102db556e367af1e5bca7359160840d2d0 (patch) | |
tree | 531c390bfcb86473d300fb78717286591a1ff93c /tools/llvm-mc/AsmParser.cpp | |
parent | aa551ae10e0cac338a9fa1ff9e20571eae07aac2 (diff) |
make the lexer unique strings it lexes instead of passing them back as
std::strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mc/AsmParser.cpp')
-rw-r--r-- | tools/llvm-mc/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-mc/AsmParser.cpp b/tools/llvm-mc/AsmParser.cpp index c9d2071891..4dd136d008 100644 --- a/tools/llvm-mc/AsmParser.cpp +++ b/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) { |