Use the simpler version of sys::fs::remove when possible.

llvm-svn: 198958
This commit is contained in:
Rafael Espindola
2014-01-10 21:40:29 +00:00
parent 2a008784d3
commit 81e7fd011f
5 changed files with 12 additions and 22 deletions

View File

@@ -87,8 +87,7 @@ ExecGraphViewer(StringRef ExecPath, std::vector<const char*> &args,
errs() << "Error: " << ErrMsg << "\n";
return false;
}
bool Existed;
sys::fs::remove(Filename, Existed);
sys::fs::remove(Filename);
errs() << " done. \n";
}
else {