aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-09-27 23:12:31 +0000
committerDan Gohman <djg@cray.com>2007-09-27 23:12:31 +0000
commitcfb72b2a46291fe57409ccf91166924a0e33fb8f (patch)
tree9508a5ae6e0d6c76556f84002af9645be828f861 /lib/Target/PowerPC/PPCTargetAsmInfo.cpp
parent17995b61251c19534d4c33e23cdea93cca0603fd (diff)
downloadexternal_llvm-cfb72b2a46291fe57409ccf91166924a0e33fb8f.zip
external_llvm-cfb72b2a46291fe57409ccf91166924a0e33fb8f.tar.gz
external_llvm-cfb72b2a46291fe57409ccf91166924a0e33fb8f.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetAsmInfo.cpp')
-rw-r--r--lib/Target/PowerPC/PPCTargetAsmInfo.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
index 0c4a144..7d9acd9 100644
--- a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp
+++ b/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";