aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-ld/llvm-ld.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-09 01:01:17 +0000
committerChris Lattner <sabre@nondot.org>2008-01-09 01:01:17 +0000
commit7ff4a8bf3feb1752e20505f5ec4ba92d42aa717d (patch)
treed086404ac3247b3c2c6a3720ceb203febfd3192d /llvm/tools/llvm-ld/llvm-ld.cpp
parent05d2876ec31b7edb80b698220209f1707869ba29 (diff)
downloadllvm-7ff4a8bf3feb1752e20505f5ec4ba92d42aa717d.zip
llvm-7ff4a8bf3feb1752e20505f5ec4ba92d42aa717d.tar.gz
llvm-7ff4a8bf3feb1752e20505f5ec4ba92d42aa717d.tar.bz2
Fix llvm-ld -Xlinker, patch by Daniel Teske!
llvm-svn: 45770
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp
index 463fc8f..4f888aa 100644
--- a/llvm/tools/llvm-ld/llvm-ld.cpp
+++ b/llvm/tools/llvm-ld/llvm-ld.cpp
@@ -338,10 +338,8 @@ static int GenerateNative(const std::string &OutputFilename,
}
// Add the requested options
- for (unsigned index = 0; index < XLinker.size(); index++) {
+ for (unsigned index = 0; index < XLinker.size(); index++)
args.push_back(XLinker[index]);
- args.push_back(Libraries[index]);
- }
// Add in the libraries to link.
for (unsigned index = 0; index < LinkItems.size(); index++)