From 2e4d1084954e79a0be1ea293d5cad4808f873ca4 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Sat, 28 Jul 2001 04:20:33 +0000 Subject: [PATCH] Remove redundant and unused functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/InstrForest.h | 31 +++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/include/llvm/CodeGen/InstrForest.h b/include/llvm/CodeGen/InstrForest.h index 66b9583421a..bbfd65d417e 100644 --- a/include/llvm/CodeGen/InstrForest.h +++ b/include/llvm/CodeGen/InstrForest.h @@ -24,17 +24,27 @@ #ifndef LLVM_CODEGEN_INSTRFOREST_H #define LLVM_CODEGEN_INSTRFOREST_H -#include "llvm/Support/NonCopyable.h" -#include "llvm/Instruction.h" +//************************** System Include Files **************************/ + #include #include +//*************************** User Include Files ***************************/ + +#include "llvm/Support/NonCopyable.h" +#include "llvm/Support/HashExtras.h" +#include "llvm/Instruction.h" + +//************************* Opaque Declarations ****************************/ + class ConstPoolVal; class BasicBlock; class Method; class InstrTreeNode; class InstrForest; +/******************** Exported Data Types and Constants ********************/ + //-------------------------------------------------------------------------- // OpLabel values for special-case nodes created for instruction selection. // All op-labels not defined here are identical to the instruction @@ -108,12 +118,8 @@ extern void printtree (BasicTreeNode*); extern int treecost (BasicTreeNode*, int, int); extern void printMatches (BasicTreeNode*); -//************************ Exported Data Types *****************************/ -// Provide a hash function for arbitrary pointers... -template struct hash { - inline size_t operator()(T *Val) const { return (size_t)Val; } -}; +//*********************** Public Class Declarations ************************/ //------------------------------------------------------------------------ // class InstrTreeNode @@ -185,8 +191,10 @@ protected: class InstructionNode: public InstrTreeNode { public: /*ctor*/ InstructionNode (Instruction* _instr); - Instruction* getInstruction () const { return (Instruction*) val; } - void reverseBinaryArgumentOrder(); + Instruction* getInstruction () const { + assert(treeNodeType == NTInstructionNode); + return (Instruction*) val; + } protected: virtual void dumpNode (int indent) const; }; @@ -282,6 +290,7 @@ private: InstructionNode* buildTreeForInstruction(Instruction* instr); }; -//--------------------------------------------------------------------------- -#endif /* #ifndef INSTRFOREST_H */ +/***************************************************************************/ + +#endif -- 2.34.1