mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-23 22:15:25 +00:00
Make TempDir a PathWithStatus so we don't have to cast it to one.
llvm-svn: 35772
This commit is contained in:
parent
a7785f7098
commit
b60fbb02e4
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user