llvm-lib is intended to be a lib.exe compatible utility that also
understands bitcode. The implementation lives in a library so that
lld can use it to implement /lib.
Details
Diff Detail
Event Timeline
The lib format is really similar to the .a format.
I guess the only question I have about this direction is how would it
compare with having lld fork+exec llvm-lib.exe and implementing
llvm-lib.exe in the same binary as llvm-ar.exe (similar to how we do
for llvm-ranlib.exe).
I'll want to use the lib driver from lld, per our earlier discussion here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150601/280581.html
This is fine from the llvm side.
Rui, is this a convenient interface for lld to use?
lib/LibDriver/LibDriver.cpp | ||
---|---|---|
72 | We really should just move the string saver that rui implemented to llvm and make it the one true string saver. |
+namespace {
+class StrDupSaver : public cl::StringSaver {+ std::vector<char *> Dups;
We really should just move the string saver that rui implemented to llvm
and make it the one true string saver.
At least add a fixme about that.
Given we do it all over clang as well it'd be nice, yes.
-eric
2015/06/09 午後2:31 "Rafael Ávila de Espíndola" <rafael.espindola@gmail.com>:
This is fine from the llvm side.
Rui, is this a convenient interface for lld to use?
Comment at: lib/LibDriver/LibDriver.cpp:71
@@ +70,3 @@
+namespace {
+class StrDupSaver : public cl::StringSaver {+ std::vector<char *> Dups;
We really should just move the string saver that rui implemented to llvm
and make it the one true string saver.
At least add a fixme about that.
Let me do that. I'll send a patch later.
http://reviews.llvm.org/D10297
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
- We really should just move the string saver that rui implemented to llvm
and make it the one true string saver.
At least add a fixme about that.
I am giving that a try :-)
Cheers,
Rafael
We really should just move the string saver that rui implemented to llvm and make it the one true string saver.
At least add a fixme about that.