diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-01-31 20:56:49 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-01-31 20:56:49 +0000 |
commit | bd59dff73941e98eb76e6de4cabdc29bd31426e3 (patch) | |
tree | 188dd4e74d3b35bc108ce7396c9a8b1bd554d0e1 /llvm | |
parent | 47537b617e0186bc5386e1ffa081a254fa2fffbf (diff) | |
download | bcm5719-llvm-bd59dff73941e98eb76e6de4cabdc29bd31426e3.tar.gz bcm5719-llvm-bd59dff73941e98eb76e6de4cabdc29bd31426e3.zip |
Error on all .code* directives instead of just .code16 as they
all lead to a silent miscompilation of code.
llvm-svn: 124603
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index b66eeb9cf01..7a6587811cd 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -1065,8 +1065,8 @@ bool AsmParser::ParseStatement() { if (IDVal == ".include") return ParseDirectiveInclude(); - if (IDVal == ".code16") - return TokError(".code16 not supported yet"); + if (IDVal.startswith(".code")) + return TokError(Twine(IDVal) + " not supported yet"); // Look up the handler in the handler table. std::pair<MCAsmParserExtension*, DirectiveHandler> Handler = |