summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-07-18 15:24:03 +0000
committerNirav Dave <niravd@google.com>2016-07-18 15:24:03 +0000
commita645433c5fac7910c199e8bd381942f2b6f0c0d5 (patch)
tree23dd61712189ef3db0462e6333255ff037e17334 /llvm/lib/MC/MCParser/DarwinAsmParser.cpp
parent393b37937b4edc1388bdef88469f5fe9ff8003dd (diff)
downloadbcm5719-llvm-a645433c5fac7910c199e8bd381942f2b6f0c0d5.tar.gz
bcm5719-llvm-a645433c5fac7910c199e8bd381942f2b6f0c0d5.zip
[MC] Cleanup Error Handling in AsmParser
Add parseToken and compatriot functions to stitch error checks in straight linear code. As part of this fix some erronous handling of directives where the EndOfStatement token either was not checked or Lexed on termination. Reviewers: rnk, majnemer Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D22312 llvm-svn: 275795
Diffstat (limited to 'llvm/lib/MC/MCParser/DarwinAsmParser.cpp')
-rw-r--r--llvm/lib/MC/MCParser/DarwinAsmParser.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
index 7b9f822d0c6..37515d9c074 100644
--- a/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/DarwinAsmParser.cpp
@@ -537,7 +537,6 @@ bool DarwinAsmParser::parseDirectiveLinkerOption(StringRef IDVal, SMLoc) {
Args.push_back(Data);
- Lex();
if (getLexer().is(AsmToken::EndOfStatement))
break;
OpenPOWER on IntegriCloud