aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
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
commit82482944edd810c7a1803d6694d435adf341e611 (patch)
tree9508a5ae6e0d6c76556f84002af9645be828f861 /include/llvm
parentfc3282221f90c626d80292327213e2badc3de86b (diff)
downloadexternal_llvm-82482944edd810c7a1803d6694d435adf341e611.zip
external_llvm-82482944edd810c7a1803d6694d435adf341e611.tar.gz
external_llvm-82482944edd810c7a1803d6694d435adf341e611.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/llvm')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h7
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;
}