[cfe-dev] Could LLVM or Clang go backward to modify c source code?
Wenhan Gu
nowar100 at gmail.com
Wed May 4 20:16:00 PDT 2011
Hi all,
I have a source code:
int* p = malloc(...);
After translating to llvm::Module, We can know the source code did not call
free.
I know we can hack this into Module.
But my question is,
could we hack it back to source code?
After fixing, the source will become:
int *p = malloc(...);
free(p);
Is this feasible?
Thanks all very much.
--
Best regards,
Wen-Han
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110505/2a3f6462/attachment.html>
More information about the cfe-dev
mailing list