【发布时间】:2016-02-12 07:07:12
【问题描述】:
考虑
static CallInst *Create(Value *Func,
ArrayRef<Value *> Args,
const Twine &NameStr = "",
Instruction *InsertBefore = 0)
这个函数,不知道这个函数的返回值是什么意思。
例如,在下面的代码中,
int foo(int a);
...
Function *foo_ptr = ~~;//say, foo is refered through getOrInsertFunction()
CallInst *ptr = CallInst::Create(foo_ptr, .../* properly set */);
CallInst *ptr 是返回值。抽象地说,ptr是什么意思
- int foo(int) 返回的整数值;
- 或CALL指令
我认为数字 2 是答案,但看到一些代码开始感到困惑。
【问题讨论】:
标签: c++ llvm instrumentation