diff options
Diffstat (limited to 'include/llvm/Target/TargetRegInfo.h')
-rw-r--r-- | include/llvm/Target/TargetRegInfo.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetRegInfo.h b/include/llvm/Target/TargetRegInfo.h index 29e10d3..7808efc 100644 --- a/include/llvm/Target/TargetRegInfo.h +++ b/include/llvm/Target/TargetRegInfo.h @@ -8,7 +8,6 @@ #ifndef LLVM_TARGET_TARGETREGINFO_H #define LLVM_TARGET_TARGETREGINFO_H -#include "Support/NonCopyable.h" #include "Support/hash_map" #include <string> @@ -56,7 +55,9 @@ public: //--------------------------------------------------------------------------- /// TargetRegInfo - Interface to register info of target machine /// -class TargetRegInfo : public NonCopyableV { +class TargetRegInfo { + TargetRegInfo(const TargetRegInfo &); // DO NOT IMPLEMENT + void operator=(const TargetRegInfo &); // DO NOT IMPLEMENT protected: // A vector of all machine register classes // @@ -71,7 +72,7 @@ public: static int getInvalidRegNum() { return -1; } TargetRegInfo(const TargetMachine& tgt) : target(tgt) { } - ~TargetRegInfo() { + virtual ~TargetRegInfo() { for (unsigned i = 0, e = MachineRegClassArr.size(); i != e; ++i) delete MachineRegClassArr[i]; } |