aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvmc
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-07 18:53:16 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-07 18:53:16 +0000
commitc74b4615071151b20fb1f82b11f85c2a1ba53e75 (patch)
treef81aa2aac2c66a8eea00ff3a4b1027891af7a072 /tools/llvmc
parent2ae9d11b7c0fd54e0b5298fb4fcf17b6ee9d5c91 (diff)
downloadexternal_llvm-c74b4615071151b20fb1f82b11f85c2a1ba53e75.zip
external_llvm-c74b4615071151b20fb1f82b11f85c2a1ba53e75.tar.gz
external_llvm-c74b4615071151b20fb1f82b11f85c2a1ba53e75.tar.bz2
For PR1291:
Change uses of sys::Path class to sys::PathWithStatus in those places where the file status information is needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35743 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvmc')
-rw-r--r--tools/llvmc/CompilerDriver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvmc/CompilerDriver.cpp b/tools/llvmc/CompilerDriver.cpp
index 3d91ad9..4092eda 100644
--- a/tools/llvmc/CompilerDriver.cpp
+++ b/tools/llvmc/CompilerDriver.cpp
@@ -195,7 +195,8 @@ private:
void cleanup() {
if (!isSet(KEEP_TEMPS_FLAG)) {
- const sys::FileStatus *Status = TempDir.getFileStatus();
+ const sys::FileStatus *Status =
+ sys::PathWithStatus(TempDir).getFileStatus();
if (Status && Status->isDir)
TempDir.eraseFromDisk(/*remove_contents=*/true);
} else {