summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-08 20:08:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-08 20:08:01 +0000
commitb9125b1c85f9209793051be88f316f2af15ae83d (patch)
tree0b23b8c0fd9fc35511aaa0a6f64b2e9184a74ad1 /tools
parent7b57fe3554d29c218d6c25df66ecb2c7cad21353 (diff)
downloadllvm-b9125b1c85f9209793051be88f316f2af15ae83d.tar.gz
llvm-b9125b1c85f9209793051be88f316f2af15ae83d.tar.bz2
llvm-b9125b1c85f9209793051be88f316f2af15ae83d.tar.xz
Make TempDir a PathWithStatus so we don't have to cast it to one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvmc/CompilerDriver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/llvmc/CompilerDriver.cpp b/tools/llvmc/CompilerDriver.cpp
index 4092eda610..46015df8cb 100644
--- a/tools/llvmc/CompilerDriver.cpp
+++ b/tools/llvmc/CompilerDriver.cpp
@@ -195,8 +195,7 @@ private:
void cleanup() {
if (!isSet(KEEP_TEMPS_FLAG)) {
- const sys::FileStatus *Status =
- sys::PathWithStatus(TempDir).getFileStatus();
+ const sys::FileStatus *Status = TempDir.getFileStatus();
if (Status && Status->isDir)
TempDir.eraseFromDisk(/*remove_contents=*/true);
} else {
@@ -997,7 +996,7 @@ private:
PathVector IncludePaths; ///< -I options
PathVector ToolPaths; ///< -B options
StringVector Defines; ///< -D options
- sys::Path TempDir; ///< Name of the temporary directory.
+ sys::PathWithStatus TempDir; ///< Name of the temporary directory.
StringTable AdditionalArgs; ///< The -Txyz options
StringVector fOptions; ///< -f options
StringVector MOptions; ///< -M options