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:
parent
7102a6833f
commit
28d2b8f458
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user