summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvmc/CompilerDriver.cpp
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
commit69e6062f31982e59af45799ec80485eea9de9ef0 (patch)
tree4335e2797cbcb739f4e06db686784ed4417a53ba /llvm/tools/llvmc/CompilerDriver.cpp
parent5fb6ee9d6b972ff1dbf2579c7c66f7c404d159dd (diff)
downloadbcm5719-llvm-69e6062f31982e59af45799ec80485eea9de9ef0.tar.gz
bcm5719-llvm-69e6062f31982e59af45799ec80485eea9de9ef0.zip
Make TempDir a PathWithStatus so we don't have to cast it to one.
llvm-svn: 35772
Diffstat (limited to 'llvm/tools/llvmc/CompilerDriver.cpp')
-rw-r--r--llvm/tools/llvmc/CompilerDriver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvmc/CompilerDriver.cpp b/llvm/tools/llvmc/CompilerDriver.cpp
index 4092eda6103..46015df8cb9 100644
--- a/llvm/tools/llvmc/CompilerDriver.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud