diff options
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/MachineDominators.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineFunctionPass.cpp | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineDominators.cpp b/llvm/lib/CodeGen/MachineDominators.cpp index a548480044e..303a6a9263b 100644 --- a/llvm/lib/CodeGen/MachineDominators.cpp +++ b/llvm/lib/CodeGen/MachineDominators.cpp @@ -69,7 +69,7 @@ void MachineDominatorTree::releaseMemory() { } void MachineDominatorTree::verifyAnalysis() const { - if (VerifyMachineDomInfo && isExecuted()) + if (VerifyMachineDomInfo) verifyDomTree(); } diff --git a/llvm/lib/CodeGen/MachineFunctionPass.cpp b/llvm/lib/CodeGen/MachineFunctionPass.cpp index a7ece36a1e5..2265676ff8b 100644 --- a/llvm/lib/CodeGen/MachineFunctionPass.cpp +++ b/llvm/lib/CodeGen/MachineFunctionPass.cpp @@ -38,10 +38,8 @@ Pass *MachineFunctionPass::createPrinterPass(raw_ostream &O, bool MachineFunctionPass::runOnFunction(Function &F) { // Do not codegen any 'available_externally' functions at all, they have // definitions outside the translation unit. - if (F.hasAvailableExternallyLinkage()) { - setExecuted(false); + if (F.hasAvailableExternallyLinkage()) return false; - } MachineModuleInfo &MMI = getAnalysis<MachineModuleInfo>(); MachineFunction &MF = MMI.getMachineFunction(F); |