diff options
author | Dan Gohman <gohman@apple.com> | 2008-06-21 22:06:54 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-06-21 22:06:54 +0000 |
commit | 4d515d0b09d43af59cd040bfb8bf1b7a2b992980 (patch) | |
tree | 3bb9973b89ac5d2ea17af34b793980465095f22c | |
parent | 56867520990a4fea1353d55f71bb74a0126554e6 (diff) |
Use Function's arg_size() and size() methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52605 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Core.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index a540f49de3..bb4f43d69a 100644 --- a/lib/VMCore/Core.cpp +++ b/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){ |