diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 06:56:27 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-23 06:56:27 +0000 |
commit | 142ca8e81800ce6bcb511f3250bae23210d38ec8 (patch) | |
tree | b5edc0d2bd5c9a7216da68213db868e669d7b757 /tools/gccld/GenerateCode.cpp | |
parent | e5c9cb5eb6bce502faaedea04014dab46f6540f4 (diff) |
For PR797:
Remove exception throwing from Path::getDirectoryContents and its users.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccld/GenerateCode.cpp')
-rw-r--r-- | tools/gccld/GenerateCode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gccld/GenerateCode.cpp b/tools/gccld/GenerateCode.cpp index 285f7ca84c..61bcdfae71 100644 --- a/tools/gccld/GenerateCode.cpp +++ b/tools/gccld/GenerateCode.cpp @@ -157,7 +157,8 @@ static bool isBytecodeLPath(const std::string &LibPath) { // Grab the contents of the -L path std::set<sys::Path> Files; - LPath.getDirectoryContents(Files); + if (LPath.getDirectoryContents(Files, 0)) + return false; // Iterate over the contents one by one to determine // if this -L path has any bytecode shared libraries |