mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-20 13:04:00 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265815 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0b5334d47b
commit
62e3955adf
@ -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…
x
Reference in New Issue
Block a user