From 528b00adc44ae1f8dfd78cf95853014c6ef341a1 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Sat, 1 Dec 2007 03:01:39 +0000 Subject: Fixes for MachineLoopInfo, mostly from Evan. With these, it should be almost useable! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44480 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineLoopInfo.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'include/llvm/CodeGen/MachineLoopInfo.h') diff --git a/include/llvm/CodeGen/MachineLoopInfo.h b/include/llvm/CodeGen/MachineLoopInfo.h index 1f6b1a1a7b..6f1dd86f7b 100644 --- a/include/llvm/CodeGen/MachineLoopInfo.h +++ b/include/llvm/CodeGen/MachineLoopInfo.h @@ -39,14 +39,13 @@ namespace llvm { // Provide overrides for Loop methods that don't make sense for machine loops. -template<> +template<> inline PHINode *LoopBase::getCanonicalInductionVariable() const { assert(0 && "getCanonicalInductionVariable not supported for machine loops!"); return 0; } -template<> -Instruction* +template<> inline Instruction* LoopBase::getCanonicalInductionVariableIncrement() const { assert(0 && "getCanonicalInductionVariableIncrement not supported for machine loops!"); @@ -54,19 +53,19 @@ LoopBase::getCanonicalInductionVariableIncrement() const { } template<> -bool LoopBase::isLoopInvariant(Value *V) const { +inline bool LoopBase::isLoopInvariant(Value *V) const { assert(0 && "isLoopInvariant not supported for machine loops!"); return false; } template<> -Value *LoopBase::getTripCount() const { +inline Value *LoopBase::getTripCount() const { assert(0 && "getTripCount not supported for machine loops!"); return 0; } template<> -bool LoopBase::isLCSSAForm() const { +inline bool LoopBase::isLCSSAForm() const { assert(0 && "isLCSSAForm not supported for machine loops"); return false; } @@ -129,10 +128,6 @@ public: virtual void releaseMemory() { LI->releaseMemory(); } - virtual void print(std::ostream &O, const Module* M = 0) const { - if (O) LI->print(O, M); - } - virtual void getAnalysisUsage(AnalysisUsage &AU) const; /// removeLoop - This removes the specified top-level loop from this loop info -- cgit v1.2.3-18-g5258