mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
MachO: Improve backend diagnostic for overalignment.
Give the symbol's name and disengage the enchanced crash reporting. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc48854d5d
commit
a26f428382
@ -342,7 +342,8 @@ void MachObjectWriter::WriteNlist(MachSymbolData &MSD,
|
||||
assert((1U << Log2Size) == Align && "Invalid 'common' alignment!");
|
||||
if (Log2Size > 15)
|
||||
report_fatal_error("invalid 'common' alignment '" +
|
||||
Twine(Align) + "'");
|
||||
Twine(Align) + "' for '" + Symbol.getName() + "'",
|
||||
false);
|
||||
// FIXME: Keep this mask with the SymbolFlags enumeration.
|
||||
Flags = (Flags & 0xF0FF) | (Log2Size << 8);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user