1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[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
This commit is contained in:
Lang Hames 2016-04-08 17:38:51 +00:00
parent 7102a6833f
commit 28d2b8f458
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -107,6 +107,8 @@ bool MCWinCOFFStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
case MCSA_Global:
Symbol->setExternal(true);
break;
case MCSA_AltEntry:
report_fatal_error("COFF doesn't support the .alt_entry attribute");
}
return true;