diff options
author | Dan Gohman <djg@cray.com> | 2007-09-27 23:12:31 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-09-27 23:12:31 +0000 |
commit | cfb72b2a46291fe57409ccf91166924a0e33fb8f (patch) | |
tree | 9508a5ae6e0d6c76556f84002af9645be828f861 /lib/Target/PowerPC/PPCTargetAsmInfo.cpp | |
parent | 17995b61251c19534d4c33e23cdea93cca0603fd (diff) | |
download | external_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.cpp | 1 |
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"; |