[llvm-commits] [llvm] r52605 - /llvm/trunk/lib/VMCore/Core.cpp
Dan Gohman
gohman at apple.com
Sat Jun 21 15:06:55 PDT 2008
Author: djg
Date: Sat Jun 21 17:06:54 2008
New Revision: 52605
URL: http://llvm.org/viewvc/llvm-project?rev=52605&view=rev
Log:
Use Function's arg_size() and size() methods.
Modified:
llvm/trunk/lib/VMCore/Core.cpp
Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=52605&r1=52604&r2=52605&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Sat Jun 21 17:06:54 2008
@@ -741,7 +741,7 @@
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 @@
}
unsigned LLVMCountBasicBlocks(LLVMValueRef FnRef) {
- return unwrap<Function>(FnRef)->getBasicBlockList().size();
+ return unwrap<Function>(FnRef)->size();
}
void LLVMGetBasicBlocks(LLVMValueRef FnRef, LLVMBasicBlockRef *BasicBlocksRefs){
More information about the llvm-commits
mailing list