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 /include | |
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 'include')
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 7 |
1 files changed, 0 insertions, 7 deletions
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; } |