diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-08-19 20:32:38 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-19 20:32:38 +0000 |
| commit | 62c850fb8fdb345efdefcb610c87731e0491c9ff (patch) | |
| tree | f95222c9c74724b59cf436dc1051aeebf0890566 /clang/lib | |
| parent | df4d388c15ba0b0244ecd29f44d5ea319820d315 (diff) | |
| download | bcm5719-llvm-62c850fb8fdb345efdefcb610c87731e0491c9ff.tar.gz bcm5719-llvm-62c850fb8fdb345efdefcb610c87731e0491c9ff.zip | |
Remove now unnecessary helper methods.
llvm-svn: 79460
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Frontend/FixItRewriter.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Frontend/HTMLDiagnostics.cpp | 8 | ||||
| -rw-r--r-- | clang/lib/Rewrite/HTMLRewrite.cpp | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Frontend/FixItRewriter.cpp b/clang/lib/Frontend/FixItRewriter.cpp index 5fdc2305cfb..399ad1c2cd7 100644 --- a/clang/lib/Frontend/FixItRewriter.cpp +++ b/clang/lib/Frontend/FixItRewriter.cpp @@ -159,7 +159,7 @@ void FixItRewriter::HandleDiagnostic(Diagnostic::Level DiagLevel, const CodeModificationHint &Hint = Info.getCodeModificationHint(Idx); if (!Hint.RemoveRange.isValid()) { // We're adding code. - if (Rewrite.InsertStrBefore(Hint.InsertionLoc, Hint.CodeToInsert)) + if (Rewrite.InsertTextBefore(Hint.InsertionLoc, Hint.CodeToInsert)) Failed = true; continue; } diff --git a/clang/lib/Frontend/HTMLDiagnostics.cpp b/clang/lib/Frontend/HTMLDiagnostics.cpp index 9b86755538f..d92e0d43538 100644 --- a/clang/lib/Frontend/HTMLDiagnostics.cpp +++ b/clang/lib/Frontend/HTMLDiagnostics.cpp @@ -270,7 +270,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) { os << "</table>\n<!-- REPORTSUMMARYEXTRA -->\n" "<h3>Annotated Source Code</h3>\n"; - R.InsertStrBefore(SMgr.getLocForStartOfFile(FID), os.str()); + R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); } // Embed meta-data tags. @@ -302,7 +302,7 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) { os << "\n<!-- BUGMETAEND -->\n"; // Insert the text. - R.InsertStrBefore(SMgr.getLocForStartOfFile(FID), os.str()); + R.InsertTextBefore(SMgr.getLocForStartOfFile(FID), os.str()); } // Add CSS, header, and footer. @@ -511,7 +511,7 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, SourceLocation Loc = SM.getLocForStartOfFile(LPosInfo.first).getFileLocWithOffset(DisplayPos); - R.InsertStrBefore(Loc, os.str()); + R.InsertTextBefore(Loc, os.str()); // Now highlight the ranges. for (const SourceRange *I = P.ranges_begin(), *E = P.ranges_end(); @@ -534,7 +534,7 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, std::string EscapedCode = html::EscapeText(Hint->CodeToInsert, true); EscapedCode = "<span class=\"CodeInsertionHint\">" + EscapedCode + "</span>"; - R.InsertStrBefore(Hint->InsertionLoc, EscapedCode); + R.InsertTextBefore(Hint->InsertionLoc, EscapedCode); } } #endif diff --git a/clang/lib/Rewrite/HTMLRewrite.cpp b/clang/lib/Rewrite/HTMLRewrite.cpp index a17dde8254c..925fa553128 100644 --- a/clang/lib/Rewrite/HTMLRewrite.cpp +++ b/clang/lib/Rewrite/HTMLRewrite.cpp @@ -339,10 +339,10 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, "</style>\n</head>\n<body>"; // Generate header - R.InsertStrBefore(StartLoc, os.str()); + R.InsertTextBefore(StartLoc, os.str()); // Generate footer - R.InsertCStrAfter(EndLoc, "</body></html>\n"); + R.InsertTextAfter(EndLoc, "</body></html>\n"); } /// SyntaxHighlight - Relex the specified FileID and annotate the HTML with |

