[LLVMdev] need to access static functions as extern

dan mihai dnmh68 at hotmail.com
Thu Oct 22 11:52:59 PDT 2009


Hello,

    
I write some instrumentation which needs to call static function from other files.
Is there a way to associate a global name/alias to a static function?

I need to turn the assembly code
    .align    16
    .type    some_static.2467, at function
some_static.2467:
    CODE



into 

    .align    16
    .type    some_static.2467, at function
some_static.2467:
    .align    16
    .globl    some_extern_alias.2467
    .type    some_extern_alias.2467, at function
some_extern_alias.2467:
     CODE


and now I can call some_extern_alias.2467
Is there a way to perform this automatically in llvm?

Thank you,
Dan
 		 	   		  
_________________________________________________________________
Windows 7: Simplify your PC. Learn more.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen1:102009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091022/72f756c1/attachment.html>


More information about the llvm-dev mailing list