From: Gabor Greif Date: Wed, 4 Mar 2009 21:54:31 +0000 (+0000) Subject: ooops, forgot to include the pointless-write eliminator in my previous checkin X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f3841fcbd587c31aa9842b3f33bd57de40c9f443;p=oota-llvm.git ooops, forgot to include the pointless-write eliminator in my previous checkin git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66081 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 561dbb27910..84dc6a66261 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -44,6 +44,7 @@ template<> struct ilist_traits Instruction *provideInitialHead() const { return createSentinel(); } Instruction *ensureHead(Instruction*) const { return createSentinel(); } + static void noteHead(Instruction*, Instruction*) {} static iplist &getList(BasicBlock *BB); static ValueSymbolTable *getSymTab(BasicBlock *ItemParent); diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index de0a4c40f1d..388ca7f93b4 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -40,6 +40,7 @@ public: MachineInstr *provideInitialHead() const { return createSentinel(); } MachineInstr *ensureHead(MachineInstr*) const { return createSentinel(); } + static void noteHead(MachineInstr*, MachineInstr*) {} void addNodeToList(MachineInstr* N); void removeNodeFromList(MachineInstr* N); diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 7386b2b1284..dc7fa8cb167 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -48,6 +48,7 @@ public: MachineBasicBlock *ensureHead(MachineBasicBlock*) const { return createSentinel(); } + static void noteHead(MachineBasicBlock*, MachineBasicBlock*) {} void addNodeToList(MachineBasicBlock* MBB); void removeNodeFromList(MachineBasicBlock* MBB); diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h index b895242f57e..7e81e02073c 100644 --- a/include/llvm/CodeGen/SelectionDAG.h +++ b/include/llvm/CodeGen/SelectionDAG.h @@ -48,6 +48,7 @@ public: SDNode *provideInitialHead() const { return createSentinel(); } SDNode *ensureHead(SDNode*) const { return createSentinel(); } + static void noteHead(SDNode*, SDNode*) {} static void deleteNode(SDNode *) { assert(0 && "ilist_traits shouldn't see a deleteNode call!"); diff --git a/include/llvm/Function.h b/include/llvm/Function.h index cb3cc939d00..db13a0fa8a6 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -41,6 +41,7 @@ template<> struct ilist_traits BasicBlock *provideInitialHead() const { return createSentinel(); } BasicBlock *ensureHead(BasicBlock*) const { return createSentinel(); } + static void noteHead(BasicBlock*, BasicBlock*) {} static iplist &getList(Function *F); static ValueSymbolTable *getSymTab(Function *ItemParent); @@ -59,6 +60,7 @@ template<> struct ilist_traits Argument *provideInitialHead() const { return createSentinel(); } Argument *ensureHead(Argument*) const { return createSentinel(); } + static void noteHead(Argument*, Argument*) {} static iplist &getList(Function *F); static ValueSymbolTable *getSymTab(Function *ItemParent); diff --git a/include/llvm/Support/Recycler.h b/include/llvm/Support/Recycler.h index 39c992bc537..2fa0365d5f5 100644 --- a/include/llvm/Support/Recycler.h +++ b/include/llvm/Support/Recycler.h @@ -48,6 +48,7 @@ struct ilist_traits : ilist_default_traits { RecyclerStruct *provideInitialHead() const { return createSentinel(); } RecyclerStruct *ensureHead(RecyclerStruct*) const { return createSentinel(); } + static void noteHead(RecyclerStruct*, RecyclerStruct*) {} static void deleteNode(RecyclerStruct *) { assert(0 && "Recycler's ilist_traits shouldn't see a deleteNode call!");