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 | 51edba15c6a11fd79e60039264bee8daa2f14cd0 (patch) | |
tree | f005d1dbd5aa2b0c90fb60850774e5b834c96097 /llvm/tools/gccld/GenerateCode.cpp | |
parent | 8db844241b25c5a350d3edeeac459fca69c7ae51 (diff) | |
download | bcm5719-llvm-51edba15c6a11fd79e60039264bee8daa2f14cd0.tar.gz bcm5719-llvm-51edba15c6a11fd79e60039264bee8daa2f14cd0.zip |
For PR797:
Remove exception throwing from Path::getDirectoryContents and its users.
llvm-svn: 29841
Diffstat (limited to 'llvm/tools/gccld/GenerateCode.cpp')
-rw-r--r-- | llvm/tools/gccld/GenerateCode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/gccld/GenerateCode.cpp b/llvm/tools/gccld/GenerateCode.cpp index 285f7ca84cd..61bcdfae717 100644 --- a/llvm/tools/gccld/GenerateCode.cpp +++ b/llvm/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 |