Quantcast

Instrumentation with Clang

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

Instrumentation with Clang

Keane, Erich 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. 

Regards,
Hong HU

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...