[cfe-commits] r123344 - /cfe/trunk/lib/Driver/ToolChains.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Wed Jan 12 15:54:48 PST 2011
Author: mspencer
Date: Wed Jan 12 17:54:48 2011
New Revision: 123344
URL: http://llvm.org/viewvc/llvm-project?rev=123344&view=rev
Log:
replace all uses of PathV1::IsSymlink with PathV2::is_symlink.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=123344&r1=123343&r2=123344&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Wed Jan 12 17:54:48 2011
@@ -1325,8 +1325,9 @@
std::string Lib64 = "lib";
llvm::sys::Path Lib64Path("/lib64");
+ bool Symlink;
if (!llvm::sys::fs::exists(Lib64Path.str(), Exists) && Exists &&
- !Lib64Path.isSymLink())
+ (llvm::sys::fs::is_symlink(Lib64Path.str(), Symlink) || !Symlink))
Lib64 = "lib64";
std::string GccTriple = "";
More information about the cfe-commits
mailing list