From: Jim Grosbach Date: Tue, 24 Sep 2013 23:56:31 +0000 (+0000) Subject: MachO: Improve backend diagnostic for overalignment. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a26f4283826894ac00665f9d24fa99cacc5192ab;p=oota-llvm.git 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 --- diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 3531ab2247d..8234affc54d 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -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); }