Instrumentation with Clang

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

Instrumentation with Clang

David Chisnall via cfe-dev
Hi Clang developers,

May I know how to insert an extra function declaration at the very beginning of the compilation? 

For example, I want to add a call to function "foo", which is not defined by the source code. Instead of  adding "extern void foo()" to each source code manually, I'd like to use clang to do it automatically. 

Hong HU

cfe-dev mailing list
[hidden email]