Per offline discussion with Steve Naroff, add back Type::getAsXXXType() methods

until Doug Gregor's Type smart pointer code lands (or more discussion occurs).
These methods just call the new Type::getAs<XXX> methods, so we still have
reduced implementation redundancy. Having explicit getAsXXXType() methods makes
it easier to set breakpoints in the debugger.

llvm-svn: 76193
This commit is contained in:
Ted Kremenek
2009-07-17 17:50:17 +00:00
parent 9691e71a4f
commit 8a286fbdb9
51 changed files with 401 additions and 369 deletions

View File

@@ -1251,7 +1251,7 @@ GetAddrOfConstantCFString(const StringLiteral *Literal) {
}
QualType CFTy = getContext().getCFConstantStringType();
RecordDecl *CFRD = CFTy->getAs<RecordType>()->getDecl();
RecordDecl *CFRD = CFTy->getAsRecordType()->getDecl();
const llvm::StructType *STy =
cast<llvm::StructType>(getTypes().ConvertType(CFTy));