Modernize some low-hanging PathV1 uses.

llvm-svn: 183903
This commit is contained in:
Benjamin Kramer
2013-06-13 14:26:04 +00:00
parent 601a2d847b
commit 33d4330393
3 changed files with 27 additions and 24 deletions

View File

@@ -21,8 +21,8 @@
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/PathV1.h"
#include "llvm/Support/raw_ostream.h"
using namespace clang;
@@ -166,7 +166,8 @@ static void PrintFilename(raw_ostream &OS, StringRef Filename) {
void DependencyFileCallback::OutputDependencyFile() {
if (SeenMissingHeader) {
llvm::sys::Path(OutputFile).eraseFromDisk();
bool existed;
llvm::sys::fs::remove(OutputFile, existed);
return;
}