[llvm-commits] [llvm] r50463 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Dale Johannesen
dalej at apple.com
Tue Apr 29 17:43:29 PDT 2008
Author: johannes
Date: Tue Apr 29 19:43:29 2008
New Revision: 50463
URL: http://llvm.org/viewvc/llvm-project?rev=50463&view=rev
Log:
Add comments for previous patch as requested.
Modified:
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=50463&r1=50462&r2=50463&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Tue Apr 29 19:43:29 2008
@@ -2876,6 +2876,9 @@
RI->getInitialFrameState(Moves);
EmitFrameMoves(NULL, 0, Moves, true);
+ // On Darwin the linker honors the alignment of eh_frame, which means it
+ // must be 8-byte on 64-bit targets to match what gcc does. Otherwise
+ // you get holes which confuse readers of eh_frame.
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
0, 0, false);
EmitLabel("eh_frame_common_end", Index);
@@ -2966,6 +2969,9 @@
// frame.
EmitFrameMoves("eh_func_begin", EHFrameInfo.Number, EHFrameInfo.Moves, true);
+ // On Darwin the linker honors the alignment of eh_frame, which means it
+ // must be 8-byte on 64-bit targets to match what gcc does. Otherwise
+ // you get holes which confuse readers of eh_frame.
Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
0, 0, false);
EmitLabel("eh_frame_end", EHFrameInfo.Number);
More information about the llvm-commits
mailing list