diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 03:01:26 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-13 03:01:26 +0000 |
commit | 11db4b8084270cb91446485b9534864ce52a95ef (patch) | |
tree | b990aa6d4735bab6bc3b41d8cf0ce421ca6e0175 /tools/llvmc/CompilerDriver.cpp | |
parent | c40641347131c15e5b8ace6d7b2abbbb51828833 (diff) |
PR351: \
Use sys::Path not FileUtilities to check file types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc/CompilerDriver.cpp')
-rw-r--r-- | tools/llvmc/CompilerDriver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/llvmc/CompilerDriver.cpp b/tools/llvmc/CompilerDriver.cpp index 61d0d5ac8b..f7630a2aae 100644 --- a/tools/llvmc/CompilerDriver.cpp +++ b/tools/llvmc/CompilerDriver.cpp @@ -780,8 +780,9 @@ public: if (finalPhase == LINKING) { // Insert the platform-specific system libraries to the path list - LibraryPaths.push_back(sys::Path::GetSystemLibraryPath1()); - LibraryPaths.push_back(sys::Path::GetSystemLibraryPath2()); + std::vector<sys::Path> SysLibs; + sys::Path::GetSystemLibraryPaths(SysLibs); + LibraryPaths.insert(LibraryPaths.end(), SysLibs.begin(), SysLibs.end()); // Set up the linking action with llvm-ld Action* link = new Action(); |