mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user