[llvm-commits] [llvm] r50451 - /llvm/trunk/lib/CodeGen/DwarfWriter.cpp
Dale Johannesen
dalej at apple.com
Tue Apr 29 15:58:20 PDT 2008
Author: johannes
Date: Tue Apr 29 17:58:20 2008
New Revision: 50451
URL: http://llvm.org/viewvc/llvm-project?rev=50451&view=rev
Log:
Make eh_frame objects by 8-byte aligned on 64-bit
targets.
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=50451&r1=50450&r2=50451&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Tue Apr 29 17:58:20 2008
@@ -2876,7 +2876,8 @@
RI->getInitialFrameState(Moves);
EmitFrameMoves(NULL, 0, Moves, true);
- Asm->EmitAlignment(2, 0, 0, false);
+ Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
+ 0, 0, false);
EmitLabel("eh_frame_common_end", Index);
Asm->EOL();
@@ -2965,7 +2966,8 @@
// frame.
EmitFrameMoves("eh_func_begin", EHFrameInfo.Number, EHFrameInfo.Moves, true);
- Asm->EmitAlignment(2, 0, 0, false);
+ Asm->EmitAlignment(TD->getPointerSize() == sizeof(int32_t) ? 2 : 3,
+ 0, 0, false);
EmitLabel("eh_frame_end", EHFrameInfo.Number);
// If the function is marked used, this table should be also. We cannot
More information about the llvm-commits
mailing list