aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-12-23 17:56:54 +0000
committerJohn McCall <rjmccall@apple.com>2010-12-23 17:56:54 +0000
commitfd03843f0597de5eeced69ca9ae45c478fb2b153 (patch)
tree61027fa08a119fc1503df2a6aa464c6a53d27640
parentb9c6631941619fb8c74f1056fbc56270629201c1 (diff)
Kill RecordType::getAddressSpace() and its fixme; that's just not how
address spaces work. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122511 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/CanonicalType.h1
-rw-r--r--include/clang/AST/Type.h6
2 files changed, 0 insertions, 7 deletions
diff --git a/include/clang/AST/CanonicalType.h b/include/clang/AST/CanonicalType.h
index 2d67a39f95..f5915d64fd 100644
--- a/include/clang/AST/CanonicalType.h
+++ b/include/clang/AST/CanonicalType.h
@@ -639,7 +639,6 @@ struct CanProxyAdaptor<RecordType> : public CanProxyBase<RecordType> {
LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(RecordDecl *, getDecl)
LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, isBeingDefined)
LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(bool, hasConstFields)
- LLVM_CLANG_CANPROXY_SIMPLE_ACCESSOR(unsigned, getAddressSpace)
};
template<>
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index a2d9a17d31..5e675cbe87 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -2616,10 +2616,6 @@ public:
// const, it needs to return false.
bool hasConstFields() const { return false; }
- // FIXME: RecordType needs to check when it is created that all fields are in
- // the same address space, and return that.
- unsigned getAddressSpace() const { return 0; }
-
bool isSugared() const { return false; }
QualType desugar() const { return QualType(this, 0); }
@@ -3703,8 +3699,6 @@ inline unsigned QualType::getAddressSpace() const {
if (const ArrayType *AT = dyn_cast<ArrayType>(CT))
return AT->getElementType().getAddressSpace();
- if (const RecordType *RT = dyn_cast<RecordType>(CT))
- return RT->getAddressSpace();
return 0;
}