diff options
| author | Dan Gohman <gohman@apple.com> | 2007-09-27 23:12:31 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-09-27 23:12:31 +0000 |
| commit | a1d46c7d0aec896d62f2995418faaba7dcffae07 (patch) | |
| tree | f7a44a8292573620e964f618b9d7c8eab3758f42 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp | |
| parent | 613afce4301918c5f3504c61306211fd9aab974f (diff) | |
| download | bcm5719-llvm-a1d46c7d0aec896d62f2995418faaba7dcffae07.tar.gz bcm5719-llvm-a1d46c7d0aec896d62f2995418faaba7dcffae07.zip | |
TargetAsmInfo::getAddressSize() was incorrect for x86-64 and 64-bit targets
other than PPC64. Instead of fixing it, just remove it and fix all the
places that use it to use TargetData::getPointerSize() instead, as there
aren't very many. Most of the references were in DwarfWriter.cpp.
llvm-svn: 42419
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index 0c4a14477a7..7d9acd9c360 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp @@ -29,7 +29,6 @@ PPCTargetAsmInfo::PPCTargetAsmInfo(const PPCTargetMachine &TM) { AssemblerDialect = TM.getSubtargetImpl()->getAsmFlavor(); NeedsSet = true; - AddressSize = isPPC64 ? 8 : 4; DwarfEHFrameSection = ".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support"; DwarfExceptionSection = ".section __DATA,__gcc_except_tab"; |

