diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 06:34:22 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-04 06:34:22 +0000 |
commit | c82a5da049774631a63584601ddb840ca4cee07a (patch) | |
tree | 8a3fee064266dd4b7cc90500f70c0d3357444492 /tools | |
parent | c8539731bd7ef7dae1dfc267446f734380f929c9 (diff) | |
download | external_llvm-c82a5da049774631a63584601ddb840ca4cee07a.zip external_llvm-c82a5da049774631a63584601ddb840ca4cee07a.tar.gz external_llvm-c82a5da049774631a63584601ddb840ca4cee07a.tar.bz2 |
For PR1302:
Rename LinkItems as NativeLinkItems since it is filled out by the Linker
library to contain only those items deemed to be native.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-ld/llvm-ld.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 207f0cb..fd0d9f2 100644 --- a/tools/llvm-ld/llvm-ld.cpp +++ b/tools/llvm-ld/llvm-ld.cpp @@ -268,12 +268,12 @@ static int GenerateCFile(const std::string &OutputFile, /// specified bytecode file. /// /// Inputs: -/// InputFilename - The name of the input bytecode file. -/// OutputFilename - The name of the file to generate. -/// LinkItems - The native libraries, files, code with which to link -/// LibPaths - The list of directories in which to find libraries. -/// gcc - The pathname to use for GGC. -/// envp - A copy of the process's current environment. +/// InputFilename - The name of the input bytecode file. +/// OutputFilename - The name of the file to generate. +/// NativeLinkItems - The native libraries, files, code with which to link +/// LibPaths - The list of directories in which to find libraries. +/// gcc - The pathname to use for GGC. +/// envp - A copy of the process's current environment. /// /// Outputs: /// None. @@ -446,8 +446,9 @@ int main(int argc, char **argv, char **envp) { // Construct a Linker (now that Verbose is set) Linker TheLinker(progname, OutputFilename, Verbose); - // Keep track of the native link items (vice the bytecode items) - Linker::ItemList LinkItems; + + // Keep track of the native link items (versus the bytecode items) + Linker::ItemList NativeLinkItems; // Add library paths to the linker TheLinker.addPaths(LibPaths); @@ -476,7 +477,7 @@ int main(int argc, char **argv, char **envp) { BuildLinkItems(Items, InputFilenames, Libraries); // Link all the items together - if (TheLinker.LinkInItems(Items,LinkItems) ) + if (TheLinker.LinkInItems(Items, NativeLinkItems) ) return 1; // Error already printed } @@ -563,7 +564,7 @@ int main(int argc, char **argv, char **envp) { if (Verbose) cout << "Generating Native Code\n"; if (0 != GenerateNative(OutputFilename, AssemblyFile.toString(), - LinkItems,gcc,envp,ErrMsg)) + NativeLinkItems, gcc, envp, ErrMsg)) PrintAndExit(ErrMsg); // Remove the assembly language file. @@ -595,8 +596,8 @@ int main(int argc, char **argv, char **envp) { if (Verbose) cout << "Generating Native Code\n"; - if (0 != GenerateNative(OutputFilename, CFile.toString(), LinkItems, - gcc, envp, ErrMsg)) + if (0 != GenerateNative(OutputFilename, CFile.toString(), + NativeLinkItems, gcc, envp, ErrMsg)) PrintAndExit(ErrMsg); // Remove the assembly language file. |