[llvm-commits] Patch to add flag in llvm-extract for including aliases in the extraction.

Jan Sjodin jan_sjodin at yahoo.com
Mon Oct 29 13:11:08 PDT 2012


>I noticed that the GVExtractorPass pass itself would not behave
>correctly if given an alias that had an use in that file. I extended
>you testcase to include that, fixed GVExtractorPass and implemented
>the "better job on alaises by default".

Great!

>I agree we need a -alias option just how we have a -func and a -glob.
>With the default behavior fixed, can you explain why we also need
>
>$ llvm-extract -func=bar -with-aliases ...
>
>instead of just using
>
>$ llvm-extract -func=bar -alias=the_alias_of_bar....
>


Because you may not know that bar and the_alias_of_bar are related in any way if you use e.g. llvm-nm to extract symbol names, and then llvm-extract to extract them.


- Jan





More information about the llvm-commits mailing list