[cfe-dev] Is there a way to apply -finstrument-functions to a .ll file?

Peng Yu via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 24 11:00:43 PST 2019


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



More information about the cfe-dev mailing list