mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 03:28:35 +00:00
Error on all .code* directives instead of just .code16 as they
all lead to a silent miscompilation of code. llvm-svn: 124603
This commit is contained in:
parent
0db8e64017
commit
9a8a680ed2
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user