[LLVMdev] call different function while running
赵夏
zhaoxiahust at gmail.com
Sun Nov 20 04:00:35 PST 2011
Hello every, I am new to LLVM, using it to create a system
Now I have a problem
code below:
int main(int argc, char **argv)
{
symbolic(2);//symbolic(int a)
sleep(1,2);//sleep(int a, int b)
}
two definations of sleep
int sleep(int a, int b)
{
return a+b;
}
int sleep(int a, int b)
{
return a-b;
}
can I choose different sleep() by the result of symbolic(),
if symbolic(5) calling the first sleep
if symbolic(2) calling the second sleep
how to make it by using PASS, how to complete it by writing symbolic()
Do you have any ideas,
Thank you very much
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111120/abc1802f/attachment.html>
More information about the llvm-dev
mailing list