summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-27 23:12:31 +0000
committerDan Gohman <gohman@apple.com>2007-09-27 23:12:31 +0000
commita1d46c7d0aec896d62f2995418faaba7dcffae07 (patch)
treef7a44a8292573620e964f618b9d7c8eab3758f42 /llvm/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parent613afce4301918c5f3504c61306211fd9aab974f (diff)
downloadbcm5719-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.cpp1
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";
OpenPOWER on IntegriCloud