summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2011-01-28 19:29:48 +0000
committerRoman Divacky <rdivacky@freebsd.org>2011-01-28 19:29:48 +0000
commitcd9ae95ae724fc8198eaa7376aba4a1ac69349fb (patch)
tree31334c016d1c1b58d22ce8372722c2365d24cf7a
parente4b4d0c16db70233d9dc4829b5e0419d8f5b984c (diff)
downloadbcm5719-llvm-cd9ae95ae724fc8198eaa7376aba4a1ac69349fb.tar.gz
bcm5719-llvm-cd9ae95ae724fc8198eaa7376aba4a1ac69349fb.zip
Error on .code16 instead of producing wrong (32bit) code.
llvm-svn: 124498
-rw-r--r--llvm/lib/MC/MCParser/AsmParser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index 891930d9e7c..b66eeb9cf01 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -1065,6 +1065,9 @@ bool AsmParser::ParseStatement() {
if (IDVal == ".include")
return ParseDirectiveInclude();
+ if (IDVal == ".code16")
+ return TokError(".code16 not supported yet");
+
// Look up the handler in the handler table.
std::pair<MCAsmParserExtension*, DirectiveHandler> Handler =
DirectiveMap.lookup(IDVal);
OpenPOWER on IntegriCloud