From cfb72b2a46291fe57409ccf91166924a0e33fb8f Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 27 Sep 2007 23:12:31 +0000 Subject: 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 --- include/llvm/Target/TargetAsmInfo.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'include') diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index b4bb8ec..3ec55ee 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -56,10 +56,6 @@ namespace llvm { /// section on this target. Null if this target doesn't support zerofill. const char *ZeroFillDirective; // Default is null. - /// AddressSize - Size of addresses used in file. - /// - unsigned AddressSize; // Defaults to 4. - /// NeedsSet - True if target asm can't compute addresses on data /// directives. bool NeedsSet; // Defaults to false. @@ -400,9 +396,6 @@ namespace llvm { const char *getZeroFillDirective() const { return ZeroFillDirective; } - unsigned getAddressSize() const { - return AddressSize; - } bool needsSet() const { return NeedsSet; } -- cgit v1.1