Remove noncopyableV base classes, as they were confusing the doxygen documentation,
authorChris Lattner <sabre@nondot.org>
Tue, 3 Jun 2003 15:28:40 +0000 (15:28 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 3 Jun 2003 15:28:40 +0000 (15:28 +0000)
making it harder to read.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6575 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetCacheInfo.h
include/llvm/Target/TargetMachine.h
include/llvm/Target/TargetOptInfo.h
include/llvm/Target/TargetRegInfo.h

index d83aac78b9beecb6aa14849a28972c4fb8ea9e41..5eb9fdecdc3d283bbc7ef2ce7c520831594eb781 100644 (file)
 #include "Support/DataTypes.h"
 class TargetMachine;
 
-struct TargetCacheInfo : public NonCopyableV {
+struct TargetCacheInfo {
   const TargetMachine &target;
+  TargetCacheInfo(const TargetCacheInfo&); // DO NOT IMPLEMENT
+  void operator=(const TargetCacheInfo&);  // DO NOT IMPLEMENT
 protected:
   unsigned int           numLevels;
   std::vector<unsigned short> cacheLineSizes;
@@ -22,6 +24,7 @@ public:
   TargetCacheInfo(const TargetMachine& tgt) : target(tgt) {
     Initialize();
   }
+  virtual ~TargetCacheInfo() {}
   
   // Default parameters are:
   //    NumLevels    = 2
index 041a724b0c37f0cd6f50fa9027c2525882d5c9cb..09bfca7ed266a8584b5e8bf6dbbdfe810c5eb215 100644 (file)
@@ -28,10 +28,12 @@ class Pass;
 /// the target machine.  All target-specific information should be accessible
 /// through this interface.
 /// 
-class TargetMachine : public NonCopyableV {
+class TargetMachine {
   const std::string Name;
-  const TargetData DataLayout;         // Calculates type size & alignment
+  const TargetData DataLayout;          // Calculates type size & alignment
   
+  TargetMachine(const TargetMachine&);   // DO NOT IMPLEMENT
+  void operator=(const TargetMachine&);  // DO NOT IMPLEMENT
 protected:
   TargetMachine(const std::string &name, // Can only create subclasses...
                bool LittleEndian = false,
index 295895e3619845b92fc292a9389ca6da46d1021d..658932eb24628eb31029bdffb47c5347aa1070aa 100644 (file)
@@ -1,21 +1,24 @@
 //===-- llvm/Target/TargetOptInfo.h ------------------------------*- C++ -*-==//
 //
+//  FIXME: ADD A COMMENT DESCRIBING THIS FILE!
 //
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_TARGET_TARGETOPTINFO_H
 #define LLVM_TARGET_TARGETOPTINFO_H
 
-#include "Support/DataTypes.h"
+class MachineInstr;
 class TargetMachine;
 
-struct TargetOptInfo : public NonCopyableV {
+struct TargetOptInfo {
   const TargetMachine &target;
   
+  TargetOptInfo(const TargetOptInfo &);   // DO NOT IMPLEMENT
+  void operator=(const TargetOptInfo &);  // DO NOT IMPLEMENT
 public:
-  TargetOptInfo(const TargetMachine& tgt): target(tgt) { }
+  TargetOptInfo(const TargetMachine &TM) : target(TM) { }
 
-  virtual bool IsUselessCopy    (const MachineInstr* MI) const = 0;
+  virtual bool IsUselessCopy(const MachineInstr* MI) const = 0;
 };
 
 #endif
index 29e10d395e59dbdb1c20c863262463e900e4135c..7808efca07fb3bd781220f9b2494c08ec89dd488 100644 (file)
@@ -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];
   }