mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 13:08:00 +00:00
Use Function's arg_size() and size() methods.
llvm-svn: 52605
This commit is contained in:
parent
a41cf16a8f
commit
e0744f181b
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user