mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 14:35:54 +00:00
These methods are inlined
llvm-svn: 17958
This commit is contained in:
parent
37651b157b
commit
a06c8cfe80
@ -149,17 +149,6 @@ CallInst::CallInst(const CallInst &CI)
|
|||||||
Operands.push_back(Use(CI.Operands[i], this));
|
Operands.push_back(Use(CI.Operands[i], this));
|
||||||
}
|
}
|
||||||
|
|
||||||
const Function *CallInst::getCalledFunction() const {
|
|
||||||
if (const Function *F = dyn_cast<Function>(Operands[0]))
|
|
||||||
return F;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Function *CallInst::getCalledFunction() {
|
|
||||||
if (Function *F = dyn_cast<Function>(Operands[0]))
|
|
||||||
return F;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// InvokeInst Implementation
|
// InvokeInst Implementation
|
||||||
@ -210,25 +199,6 @@ InvokeInst::InvokeInst(const InvokeInst &CI)
|
|||||||
Operands.push_back(Use(CI.Operands[i], this));
|
Operands.push_back(Use(CI.Operands[i], this));
|
||||||
}
|
}
|
||||||
|
|
||||||
const Function *InvokeInst::getCalledFunction() const {
|
|
||||||
if (const Function *F = dyn_cast<Function>(Operands[0]))
|
|
||||||
return F;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Function *InvokeInst::getCalledFunction() {
|
|
||||||
if (Function *F = dyn_cast<Function>(Operands[0]))
|
|
||||||
return F;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// FIXME: Is this supposed to be here?
|
|
||||||
Function *CallSite::getCalledFunction() const {
|
|
||||||
Value *Callee = getCalledValue();
|
|
||||||
if (Function *F = dyn_cast<Function>(Callee))
|
|
||||||
return F;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// ReturnInst Implementation
|
// ReturnInst Implementation
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
Reference in New Issue
Block a user