[PATCH] D13238: [ELF2] Add -Bstatic and -Bdynamic command line switches
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 29 08:48:47 PDT 2015
ruiu added inline comments.
================
Comment at: ELF/Driver.cpp:151-158
@@ +150,10 @@
+ switch (Arg->getOption().getID()) {
+ case OPT_l:
+ case OPT_INPUT: {
+ StringRef Path = Arg->getValue();
+ if (Arg->getOption().getID() == OPT_l)
+ Path = searchLibrary(Path);
+ Inputs.push_back(openFile(Path));
+ break;
+ }
+ case OPT_Bstatic:
----------------
Separate OPT_l and OPT_INPUT.
case OPT_l:
Inputs.push_back(openFile(searchLibrary(Arg->getValue()));
case OPT_INPUT:
Inputs.push_back(openFile(Arg->getValue());
http://reviews.llvm.org/D13238
More information about the llvm-commits
mailing list