summaryrefslogtreecommitdiff
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-01-10 03:14:40 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-01-10 03:14:40 +0000
commitf4484f3e16e19377af27f062ca8a0450616d319a (patch)
treedc48ce88c0d1cb43fb2dd0e058d15e1ff553e0cb /tools/llvm-ld
parent3e5e127f2986ac177bc16f5970ae0dc4dee8acec (diff)
downloadllvm-f4484f3e16e19377af27f062ca8a0450616d319a.tar.gz
llvm-f4484f3e16e19377af27f062ca8a0450616d319a.tar.bz2
llvm-f4484f3e16e19377af27f062ca8a0450616d319a.tar.xz
For PR521:
With these patches we implement the ability for the Linker library to keep track of which libraries were actually bytecode files (not archives) and cause their users to remove such files from the list of libraries to pass to the native linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/llvm-ld.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index 0c633d2462..f6c9c74742 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -434,10 +434,11 @@ int main(int argc, char **argv, char **envp) {
} else {
// Build a list of the items from our command line
Linker::ItemList Items;
+ Linker::ItemList NativeItems;
BuildLinkItems(Items, InputFilenames, Libraries);
// Link all the items together
- if (TheLinker.LinkInItems(Items) )
+ if (TheLinker.LinkInItems(Items,NativeItems) )
return 1;
}