Eliminated the Unique class in favor of NonCopyable and NonCopyableV

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-07-23 18:26:21 +00:00
parent 57dbb3ad63
commit 4bc3daaa3f
10 changed files with 61 additions and 84 deletions

View File

@@ -24,7 +24,7 @@
#ifndef LLVM_CODEGEN_INSTRFOREST_H
#define LLVM_CODEGEN_INSTRFOREST_H
#include "llvm/Support/Unique.h"
#include "llvm/Support/NonCopyable.h"
#include "llvm/Instruction.h"
#include <hash_map>
#include <hash_set>
@@ -128,7 +128,7 @@ MainTreeNode(BasicTreeNode* node) {
}
class InstrTreeNode: public Unique {
class InstrTreeNode : public NonCopyableV {
public:
enum InstrTreeNodeType { NTInstructionNode,
NTVRegListNode,
@@ -144,7 +144,7 @@ protected:
public:
/*ctor*/ InstrTreeNode (InstrTreeNodeType nodeType,
Value* _val);
/*dtor*/ virtual ~InstrTreeNode ();
/*dtor*/ virtual ~InstrTreeNode () {}
BasicTreeNode* getBasicNode () { return &basicNode; }
@@ -239,7 +239,7 @@ protected:
//------------------------------------------------------------------------
class InstrForest :
public Unique,
public NonCopyable,
private hash_map<const Instruction*, InstructionNode*> {
private: