Make TempDir a PathWithStatus so we don't have to cast it to one.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 8 Apr 2007 20:08:01 +0000 (20:08 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 8 Apr 2007 20:08:01 +0000 (20:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35772 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc/CompilerDriver.cpp

index 4092eda610383ac7d678f57a37e1009c85e3b3b6..46015df8cb93db419dff2f512ad23e88522a8c9b 100644 (file)
@@ -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