Update users of RefactoringTool

RefactoringTool::run() no longer writes changes to disk automatically. Updating users of RefactoringTool to explicitly perform the write.
    
Reviewers: klimek

llvm-svn: 172218
This commit is contained in:
Edwin Vane 2013-01-11 17:04:09 +00:00
parent ecd73d36d4
commit bfbd10b329
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ int LoopConvertTransform::apply(RiskLevel MaxRisk,
&RejectedChanges,
MaxRisk, LFK_PseudoArray);
Finder.addMatcher(makePseudoArrayLoopMatcher(), &PseudoarrrayLoopFixer);
if (int result = LoopTool.run(newFrontendActionFactory(&Finder))) {
if (int result = LoopTool.runAndSave(newFrontendActionFactory(&Finder))) {
llvm::errs() << "Error encountered during translation.\n";
return result;
}

View File

@ -232,5 +232,5 @@ int main(int argc, const char **argv) {
callee(methodDecl(hasName(StringCStrMethod))),
on(id("arg", expr())))))),
&Callback);
return Tool.run(newFrontendActionFactory(&Finder));
return Tool.runAndSave(newFrontendActionFactory(&Finder));
}