[llvm-dev] get function parameters (not arguments)
Mohammad Norouzi via llvm-dev
llvm-dev at lists.llvm.org
Fri Mar 10 07:12:44 PST 2017
Hi Everyone,
Does anyone know to get function parameters? For example, I want to get e
and f in the call to function foo in the following code:
foo(inr a , int b){
....
}
main() {
int e,f;
e=10;
f=22;
*foo(e,f);*
}
I use the following code:
for (auto& A : (cast<CallInst>(BI))->arg_operands ()) errs() << A.dump();
but I get a and b instead.
Thank you and best
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170310/f0d2da9c/attachment.html>
More information about the llvm-dev
mailing list