diff options
author | Dale Johannesen <dalej@apple.com> | 2008-04-29 22:58:20 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-04-29 22:58:20 +0000 |
commit | fc3e3ad74da065c3c6786cc3ffd1569c1d0be96f (patch) | |
tree | 412e938dc31900750f6a32cd42151b5935991b54 /llvm/lib/CodeGen/DwarfWriter.cpp | |
parent | 0d2ccffa83b60d6745d1390127373a394321e28a (diff) | |
download | bcm5719-llvm-fc3e3ad74da065c3c6786cc3ffd1569c1d0be96f.tar.gz bcm5719-llvm-fc3e3ad74da065c3c6786cc3ffd1569c1d0be96f.zip |
Make eh_frame objects by 8-byte aligned on 64-bit
targets.
llvm-svn: 50451
Diffstat (limited to 'llvm/lib/CodeGen/DwarfWriter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index 3a3a04d2fa0..74df79002f4 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/DwarfWriter.cpp @@ -2876,7 +2876,8 @@ private: 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 @@ private: // 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 |