mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
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:
parent
ecd73d36d4
commit
bfbd10b329
@ -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;
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user