Is there a way to apply -finstrument-functions to a .ll file?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Is there a way to apply -finstrument-functions to a .ll file?

David Blaikie via cfe-dev
Hi,

I got the following. Is there a way to apply -finstrument-functions to
a .ll file? Thanks.

$ clang -S -emit-llvm -c print1.c
$ clang -S -emit-llvm -finstrument-functions -c print1.ll -o /tmp/print1.ll
diff print1.ll /tmp/print1.ll
1c1
< ; ModuleID = 'print1.c'
---
> ; ModuleID = 'print1.ll'

--
Regards,
Peng
_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev