diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 22:45:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 22:45:33 +0000 |
commit | d57a7ef9252964bc6c8471451d7bd395b0520cb8 (patch) | |
tree | 4667ff61ed62b6a6082f04fc549f82326e7c2b7c /lib/Frontend/HTMLDiagnostics.cpp | |
parent | 8bde505fad92a44a853f5697a4fd8d2b52f20119 (diff) |
API changes to match llvm ToT.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/HTMLDiagnostics.cpp')
-rw-r--r-- | lib/Frontend/HTMLDiagnostics.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Frontend/HTMLDiagnostics.cpp b/lib/Frontend/HTMLDiagnostics.cpp index 838b162b79..4c84548ad3 100644 --- a/lib/Frontend/HTMLDiagnostics.cpp +++ b/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 <h1> 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; } |