diff options
author | John McCall <rjmccall@apple.com> | 2009-09-21 23:43:11 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-09-21 23:43:11 +0000 |
commit | 9dd450bb781484ca4b870529f89842541045c153 (patch) | |
tree | b2033fb4eef5442d9d080df4ae39137b696dcd4e /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | fd68c7bdc0ea3a61b90380eab3db89230c6b5f27 (diff) | |
download | bcm5719-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/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 0ed61bf0de5..f21984eaa4e 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -224,7 +224,7 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, } if (FD->getNumParams()) { - const FunctionProtoType* FProto = FD->getType()->getAsFunctionProtoType(); + const FunctionProtoType* FProto = FD->getType()->getAs<FunctionProtoType>(); assert(FProto && "Function def must have prototype!"); for (unsigned i = 0, e = FD->getNumParams(); i != e; ++i) |