diff options
author | Lang Hames <lhames@gmail.com> | 2016-04-08 17:38:51 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-04-08 17:38:51 +0000 |
commit | 6d22d8a44a8363ccc84c98c81b29968090f269a0 (patch) | |
tree | 986911c047d7c0241b46e1fc6935f2f9e74e201c /llvm/lib/MC/MCELFStreamer.cpp | |
parent | fa2dffbc1a698fac500ec27d0589a26a54d8c2df (diff) | |
download | bcm5719-llvm-6d22d8a44a8363ccc84c98c81b29968090f269a0.tar.gz bcm5719-llvm-6d22d8a44a8363ccc84c98c81b29968090f269a0.zip |
[Object] Report an error if .alt_entry is used with ELF or COFF.
I'm looking into a better way to do this long-term, but for now at least don't
crash.
llvm-svn: 265815
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCELFStreamer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp index 9249d9c49b6..3be9ed5f6d7 100644 --- a/llvm/lib/MC/MCELFStreamer.cpp +++ b/llvm/lib/MC/MCELFStreamer.cpp @@ -285,7 +285,7 @@ bool MCELFStreamer::EmitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) { break; case MCSA_AltEntry: - llvm_unreachable("ELF doesn't support this attribute"); + report_fatal_error("ELF doesn't support the .alt_entry attribute"); } return true; |