summaryrefslogtreecommitdiff
path: root/lib/MC/MCParser
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-08-21 17:12:05 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-08-21 17:12:05 +0000
commitd7ae0f187635003c385901906fe2cdd95bf13057 (patch)
tree2620e730805b170402fdd6483b2afdbaaeb8688c /lib/MC/MCParser
parent578d5f4b80a52906a31f1b22329bc2113b79a866 (diff)
downloadllvm-d7ae0f187635003c385901906fe2cdd95bf13057.tar.gz
llvm-d7ae0f187635003c385901906fe2cdd95bf13057.tar.bz2
llvm-d7ae0f187635003c385901906fe2cdd95bf13057.tar.xz
Make the wording in of the "expected identifier" error in the .macro directive
consistent with the other "expected identifier" errors. Extracted from the Andy/PaX patch. I added the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162291 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index fcd5b15f8f..f7236627d5 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -3071,14 +3071,14 @@ bool GenericAsmParser::ParseDirectiveMacro(StringRef Directive,
SMLoc DirectiveLoc) {
StringRef Name;
if (getParser().ParseIdentifier(Name))
- return TokError("expected identifier in directive");
+ return TokError("expected identifier in '.macro' directive");
MacroParameters Parameters;
if (getLexer().isNot(AsmToken::EndOfStatement)) {
for (;;) {
MacroParameter Parameter;
if (getParser().ParseIdentifier(Parameter))
- return TokError("expected identifier in directive");
+ return TokError("expected identifier in '.macro' directive");
Parameters.push_back(Parameter);
if (getLexer().isNot(AsmToken::Comma))