diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-05 16:43:40 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-02-05 16:43:40 +0000 |
commit | 88906cddbb1d5b3a868eeeec6cb170befc829c2f (patch) | |
tree | 1bd8e78dec2248cb33899c8ad41b09a16a521e27 /lib/Rewrite/Rewriter.cpp | |
parent | 90c1c58aa72fecb8c3211aa25d0ef726ca6bf876 (diff) |
Some clean up of replacement text API no longer needed by
my recent changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Rewrite/Rewriter.cpp')
-rw-r--r-- | lib/Rewrite/Rewriter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Rewrite/Rewriter.cpp b/lib/Rewrite/Rewriter.cpp index 96a2a06a44..9744496ac4 100644 --- a/lib/Rewrite/Rewriter.cpp +++ b/lib/Rewrite/Rewriter.cpp @@ -207,10 +207,9 @@ bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, /// ReplaceStmt - This replaces a Stmt/Expr with another, using the pretty /// printer to generate the replacement code. This returns true if the input /// could not be rewritten, or false if successful. -bool Rewriter::ReplaceStmt(Stmt *From, Stmt *To, int Size) { +bool Rewriter::ReplaceStmt(Stmt *From, Stmt *To) { // Measaure the old text. - if (!Size) - Size = getRangeSize(From->getSourceRange()); + int Size = getRangeSize(From->getSourceRange()); if (Size == -1) return true; |