-
Notifications
You must be signed in to change notification settings - Fork 430
Open
Description
Related
- how to generate LLVM IR files for a whole project? #28
- https://stackoverflow.com/questions/23130821/llvm-run-own-pass-automatically-with-clang?rq=1
I am trying to instrument all function calls in an existing codebase.
I don't want to have to modify existing makefile scripts too extensively.
The solution is to use the legacy pass manager.
clang++ -flegacy-pass-manager -Xclang -load -Xclang ./libmypass.so input.cpp
It seems that the new pass manager doesn't allow this yet.
You must take care to choose the correct extension point. See here are the extension points. See [here] (https://github.com/rdadolf/clangtool/blob/353b80061ce30c3062bbe4752dbaa2a1c84cc9c8/clangtool.cpp#L42-L49) for an explanation of which ones to use.
This information should be added to the readme.md.
Metadata
Metadata
Assignees
Labels
No labels