aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-link
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-25 03:59:39 +0000
committerChris Lattner <sabre@nondot.org>2002-01-25 03:59:39 +0000
commite8bab6a1c063a2d8441e7a7d94548434a1089613 (patch)
tree0ff01c59dd8e6a6fa82c4de51430985d8780b51c /tools/llvm-link
parent212231824052de891bb5c2dfd42345e13a7ba0e5 (diff)
downloadexternal_llvm-e8bab6a1c063a2d8441e7a7d94548434a1089613.zip
external_llvm-e8bab6a1c063a2d8441e7a7d94548434a1089613.tar.gz
external_llvm-e8bab6a1c063a2d8441e7a7d94548434a1089613.tar.bz2
Accept, but ignore -lfoo options.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-link')
-rw-r--r--tools/llvm-link/llvm-link.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-link/llvm-link.cpp b/tools/llvm-link/llvm-link.cpp
index 4f7530c..bdd0468 100644
--- a/tools/llvm-link/llvm-link.cpp
+++ b/tools/llvm-link/llvm-link.cpp
@@ -29,6 +29,7 @@ cl::Flag Force ("f", "Overwrite output files", cl::NoFlags, false);
cl::Flag Verbose ("v", "Print information about actions taken");
cl::Flag DumpAsm ("d", "Print assembly as linked", cl::Hidden, false);
cl::StringList LibPaths ("L", "Specify a library search path", cl::ZeroOrMore);
+cl::StringList Libraries ("l", "Specify libraries to link to", cl::ZeroOrMore);
// FileExists - Return true if the specified string is an openable file...
@@ -90,6 +91,9 @@ int main(int argc, char **argv) {
OutputFilename = InputFilenames[1];
}
+ if (!Libraries.empty())
+ cerr << "LLVM Linker Warning: Linking to libraries is unimplemented!\n";
+
std::auto_ptr<Module> Composite(LoadFile(InputFilenames[BaseArg]));
if (Composite.get() == 0) return 1;