summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-21 22:06:54 +0000
committerDan Gohman <gohman@apple.com>2008-06-21 22:06:54 +0000
commitc7076914ac10310a3580a3bfca84fea7ccc65b28 (patch)
treee007bc0259b88f858c9fb3ba9d5dc71c66daf676 /llvm/lib
parent546505e7e17149d5ffaf129eec9bb0bf458bb118 (diff)
downloadbcm5719-llvm-c7076914ac10310a3580a3bfca84fea7ccc65b28.tar.gz
bcm5719-llvm-c7076914ac10310a3580a3bfca84fea7ccc65b28.zip
Use Function's arg_size() and size() methods.
llvm-svn: 52605
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp
index a540f49de3a..bb4f43d69ae 100644
--- a/llvm/lib/VMCore/Core.cpp
+++ b/llvm/lib/VMCore/Core.cpp
@@ -741,7 +741,7 @@ void LLVMSetCollector(LLVMValueRef Fn, const char *Coll) {
unsigned LLVMCountParams(LLVMValueRef FnRef) {
// This function is strictly redundant to
// LLVMCountParamTypes(LLVMGetElementType(LLVMTypeOf(FnRef)))
- return unwrap<Function>(FnRef)->getArgumentList().size();
+ return unwrap<Function>(FnRef)->arg_size();
}
void LLVMGetParams(LLVMValueRef FnRef, LLVMValueRef *ParamRefs) {
@@ -826,7 +826,7 @@ LLVMValueRef LLVMGetBasicBlockParent(LLVMBasicBlockRef BB) {
}
unsigned LLVMCountBasicBlocks(LLVMValueRef FnRef) {
- return unwrap<Function>(FnRef)->getBasicBlockList().size();
+ return unwrap<Function>(FnRef)->size();
}
void LLVMGetBasicBlocks(LLVMValueRef FnRef, LLVMBasicBlockRef *BasicBlocksRefs){
OpenPOWER on IntegriCloud