diff options
| author | Preston Gurd <preston.gurd@intel.com> | 2012-09-19 20:23:43 +0000 |
|---|---|---|
| committer | Preston Gurd <preston.gurd@intel.com> | 2012-09-19 20:23:43 +0000 |
| commit | eb3ebf16abbbc469987b2e1306df6fe532187af2 (patch) | |
| tree | 4ef993dc4030ea55fbc5fc6585d9c35d812209d0 /llvm/lib | |
| parent | 132f8f6959c718c41522753ea288b0243feab2b0 (diff) | |
| download | bcm5719-llvm-eb3ebf16abbbc469987b2e1306df6fe532187af2.tar.gz bcm5719-llvm-eb3ebf16abbbc469987b2e1306df6fe532187af2.zip | |
Enhance unmatched '.endr' directive error message in assembler.
The directive can be matched with directives other than '.rept'
Patch by Andy Zhang!
llvm-svn: 164245
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 0a09aebbfec..ca338abed4e 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -3404,7 +3404,7 @@ bool AsmParser::ParseDirectiveIrpc(SMLoc DirectiveLoc) { bool AsmParser::ParseDirectiveEndr(SMLoc DirectiveLoc) { if (ActiveMacros.empty()) - return TokError("unexpected '.endr' directive, no current .rept"); + return TokError("unmatched '.endr' directive"); // The only .repl that should get here are the ones created by // InstantiateMacroLikeBody. |

