[llvm-commits] Patch to add flag in llvm-extract for including aliases in the extraction.
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Nov 2 16:47:26 PDT 2012
> My original task was to split a module into individual functions and global variables. The question was where should the aliases go? I chose to bundle them with the aliasees. I have written a separate tool that does everything in one go, but that is another story. If the -alias is enough for most people I think we can skip adding the -with-aliases. The question is if "convenience options" like, -with-aliases, belong in the llvm-extract tool, or if that is supposed to be done externally?
I see. So I assume you want to do something like
for every function and global variables S:
llvm-extract .. --with-alias
An interesting problem is what do you do with aliases to external
symbols. Since you are splitting everything, doesn't it make sense to
put each alias in its own file or maybe a all-aliases.ll?
> - Jan
>
Cheers,
Rafael
More information about the llvm-commits
mailing list