summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVladimir Medic <Vladimir.Medic@imgtec.com>2013-11-13 13:18:04 +0000
committerVladimir Medic <Vladimir.Medic@imgtec.com>2013-11-13 13:18:04 +0000
commitc0fad4d9fdb1aebe029bcb54311fad7059b1a9e5 (patch)
tree12522d994c20dd9a492b383ff71683c90a0a0b7e /lib
parent1206f1968b0886ab41739aebe113dd4813f3fc46 (diff)
downloadllvm-c0fad4d9fdb1aebe029bcb54311fad7059b1a9e5.tar.gz
llvm-c0fad4d9fdb1aebe029bcb54311fad7059b1a9e5.tar.bz2
llvm-c0fad4d9fdb1aebe029bcb54311fad7059b1a9e5.tar.xz
Fix bug in .gpword directive parsing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/Mips/AsmParser/MipsAsmParser.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 7b93d751e0..89e2b3b022 100644
--- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -2379,13 +2379,11 @@ bool MipsAsmParser::parseDirectiveGpWord() {
// method to evaluate the expression.
if (getParser().parseExpression(Value))
return true;
-
getParser().getStreamer().EmitGPRel32Value(Value);
- Parser.Lex(); // Eat last token.
- if (getLexer().is(AsmToken::EndOfStatement))
+ if (getLexer().isNot(AsmToken::EndOfStatement))
return Error(getLexer().getLoc(), "unexpected token in directive");
-
+ Parser.Lex(); // Eat EndOfStatement token.
return false;
}