[PATCH] request for approval to commit: llvm-c: Make target initializer functions external functions in lib.
rafael.espindola at gmail.com
Mon Sep 30 12:06:51 PDT 2013
> 2) Compile and link a program that uses LLVM, but have it pull in only the
> static libs for the targets that the program wishes to use.
> With this proposed patch, (2) won't work anymore. You'll get a link error
> since Target.cpp now requires all of the targets with which LLVM was
> configured to also be linked by the client.
Good point. What about putting these functions in a AllTargets.cpp?
That way a program that wants just some targets can call just the
initialization functions for those targets and not pull in
More information about the llvm-commits