diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-08 21:36:35 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-09-08 21:36:35 +0000 |
commit | 56a965c0f77c9e6bffd65cc8f8796442a8527381 (patch) | |
tree | d0d6c0425c4d3b56c7fa128c0c0968a8e19b3761 /lib/AST/Type.cpp | |
parent | 65b63ec1410f09e1f3cdb847018d678b8f8fc3f7 (diff) |
Reverse r113397 until we decide what to do with
use of 'struct objc_object*' for 'is' (and others)
in clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 114c9ac7df..8e6aa23618 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -470,24 +470,6 @@ bool Type::isIntegralOrEnumerationType() const { return false; } -bool Type::isLegacyObjCIdType(ASTContext &Ctx) const { - if (const PointerType *PTTo = getAs<PointerType>()) { - QualType PointeeTy = PTTo->getPointeeType(); - if (const RecordType *RTy = PointeeTy->getAs<RecordType>()) - return RTy->getDecl()->getIdentifier() == &Ctx.Idents.get("objc_object"); - } - return false; -} - -bool Type::isLegacyObjCClassType(ASTContext &Ctx) const { - if (const PointerType *PTTo = getAs<PointerType>()) { - QualType PointeeTy = PTTo->getPointeeType(); - if (const RecordType *RTy = PointeeTy->getAs<RecordType>()) - return RTy->getDecl()->getIdentifier() == &Ctx.Idents.get("objc_class"); - } - return false; -} - bool Type::isEnumeralType() const { if (const TagType *TT = dyn_cast<TagType>(CanonicalType)) return TT->getDecl()->isEnum(); |