[llvm] r191344 - MachO: Improve backend diagnostic for overalignment.
Jim Grosbach
grosbach at apple.com
Tue Sep 24 16:56:31 PDT 2013
Author: grosbach
Date: Tue Sep 24 18:56:31 2013
New Revision: 191344
URL: http://llvm.org/viewvc/llvm-project?rev=191344&view=rev
Log:
MachO: Improve backend diagnostic for overalignment.
Give the symbol's name and disengage the enchanced crash reporting.
Modified:
llvm/trunk/lib/MC/MachObjectWriter.cpp
Modified: llvm/trunk/lib/MC/MachObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MachObjectWriter.cpp?rev=191344&r1=191343&r2=191344&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MachObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/MachObjectWriter.cpp Tue Sep 24 18:56:31 2013
@@ -342,7 +342,8 @@ void MachObjectWriter::WriteNlist(MachSy
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);
}
More information about the llvm-commits
mailing list