diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-05-01 18:38:27 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-05-01 18:38:27 +0000 |
commit | 686c01854e49748ef2e23851bd0abfa8b9b414f3 (patch) | |
tree | 979815b709c06aee9b0bcf7c61199494f3080976 /lib/MC | |
parent | 25c7b6e0df86d75bd7b0b92060a9fc37786e397c (diff) | |
download | external_llvm-686c01854e49748ef2e23851bd0abfa8b9b414f3.zip external_llvm-686c01854e49748ef2e23851bd0abfa8b9b414f3.tar.gz external_llvm-686c01854e49748ef2e23851bd0abfa8b9b414f3.tar.bz2 |
MC: Unknown assembler directives are now hard errors.
Previously, an unsupported/unknown assembler directive issued a warning.
That's generally unsafe, and inconsistent with the behaviour of pretty
much every system assembler. Now that the MC assemblers are mature
enough to be the default on multiple targets, it's reasonable to
issue errors for these.
For target or platform directives that need to stay warnings, we
should add explicit handlers for them in, e.g., ELFAsmParser.cpp,
DarwinAsmParser.cpp, et. al., and issue the warning there.
rdar://9246275
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index ec137e2..2541991 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1238,7 +1238,7 @@ bool AsmParser::ParseStatement() { if (!getTargetParser().ParseDirective(ID)) return false; - return Warning(IDLoc, "ignoring directive for now"); + return Error(IDLoc, "unknown directive"); } CheckForValidSection(); |