summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DocumentXML.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-09-21 23:43:11 +0000
committerJohn McCall <rjmccall@apple.com>2009-09-21 23:43:11 +0000
commit9dd450bb781484ca4b870529f89842541045c153 (patch)
treeb2033fb4eef5442d9d080df4ae39137b696dcd4e /clang/lib/Frontend/DocumentXML.cpp
parentfd68c7bdc0ea3a61b90380eab3db89230c6b5f27 (diff)
downloadbcm5719-llvm-9dd450bb781484ca4b870529f89842541045c153.tar.gz
bcm5719-llvm-9dd450bb781484ca4b870529f89842541045c153.zip
Change all the Type::getAsFoo() methods to specializations of Type::getAs().
Several of the existing methods were identical to their respective specializations, and so have been removed entirely. Several more 'leaf' optimizations were introduced. The getAsFoo() methods which imposed extra conditions, like getAsObjCInterfacePointerType(), have been left in place. llvm-svn: 82501
Diffstat (limited to 'clang/lib/Frontend/DocumentXML.cpp')
-rw-r--r--clang/lib/Frontend/DocumentXML.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DocumentXML.cpp b/clang/lib/Frontend/DocumentXML.cpp
index 6dcb6ae45a2..a6af2f8ecfa 100644
--- a/clang/lib/Frontend/DocumentXML.cpp
+++ b/clang/lib/Frontend/DocumentXML.cpp
@@ -161,7 +161,7 @@ void DocumentXML::finalize() {
if (const TagDecl *TD = dyn_cast<TagDecl>(i->first))
addAttribute("type", getPrefixedId(BasicTypes[TD->getTypeForDecl()], ID_NORMAL));
else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(i->first))
- addAttribute("type", getPrefixedId(BasicTypes[FD->getType()->getAsFunctionType()], ID_NORMAL));
+ addAttribute("type", getPrefixedId(BasicTypes[FD->getType()->getAs<FunctionType>()], ID_NORMAL));
if (const DeclContext* parent = i->first->getParent())
addAttribute("context", parent);
OpenPOWER on IntegriCloud