|
@@ -85,6 +85,7 @@ MyPassManager::add(llvm::Pass *P)
|
|
|
// a hack to avoid having a copy of the whole addPassesToEmitMC.
|
|
// a hack to avoid having a copy of the whole addPassesToEmitMC.
|
|
|
// we want to add PrintStackSizes before FreeMachineFunctionPass.
|
|
// we want to add PrintStackSizes before FreeMachineFunctionPass.
|
|
|
if (P->getPassName() == "Free MachineFunction") {
|
|
if (P->getPassName() == "Free MachineFunction") {
|
|
|
|
|
+ delete P;
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
llvm::legacy::PassManager::add(P);
|
|
llvm::legacy::PassManager::add(P);
|