From 3441b4f77ed51d4a5a5bf172e370afa4ac048244 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 23 Aug 2009 22:45:33 +0000 Subject: API changes to match llvm ToT. llvm-svn: 79868 --- clang/lib/Frontend/HTMLDiagnostics.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/lib/Frontend/HTMLDiagnostics.cpp') diff --git a/clang/lib/Frontend/HTMLDiagnostics.cpp b/clang/lib/Frontend/HTMLDiagnostics.cpp index 838b162..4c84548 100644 --- a/clang/lib/Frontend/HTMLDiagnostics.cpp +++ b/clang/lib/Frontend/HTMLDiagnostics.cpp @@ -151,7 +151,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) { if (!Directory.isDirectory()) { llvm::errs() << "warning: could not create directory '" - << Directory.toString() << "'\n" + << Directory.str() << "'\n" << "reason: " << ErrorMsg << '\n'; noDir = true; @@ -236,7 +236,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) { if (!llvm::sys::Path(Entry->getName()).isAbsolute()) { llvm::sys::Path P = llvm::sys::Path::GetCurrentDirectory(); - DirName = P.toString() + "/"; + DirName = P.str() + "/"; } // Add the name of the file as an

tag. @@ -329,10 +329,10 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) { H.appendSuffix("html"); F.renamePathOnDisk(H, NULL); - os.open(H.toString().c_str()); + os.open(H.c_str()); if (!os) { - llvm::errs() << "warning: could not create file '" << F.toString() << "'\n"; + llvm::errs() << "warning: could not create file '" << F.str() << "'\n"; return; } -- cgit v1.1