[llvm-commits] CVS: llvm/lib/Target/TargetInstrInfo.cpp

Evan Cheng evan.cheng at apple.com
Wed Nov 29 23:10:57 PST 2006



Changes in directory llvm/lib/Target:

TargetInstrInfo.cpp updated: 1.22 -> 1.23
---
Log message:

Remove the ugly SPARCV9 TargetInstrDescriptors hack.

---
Diffs of the changes:  (+0 -13)

 TargetInstrInfo.cpp |   13 -------------
 1 files changed, 13 deletions(-)


Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.22 llvm/lib/Target/TargetInstrInfo.cpp:1.23
--- llvm/lib/Target/TargetInstrInfo.cpp:1.22	Wed Nov 15 14:56:03 2006
+++ llvm/lib/Target/TargetInstrInfo.cpp	Thu Nov 30 01:10:43 2006
@@ -17,25 +17,12 @@
 #include "llvm/DerivedTypes.h"
 using namespace llvm;
 
-namespace llvm {
-  // External object describing the machine instructions Initialized only when
-  // the TargetMachine class is created and reset when that class is destroyed.
-  //
-  // FIXME: UGLY SPARCV9 HACK!
-  const TargetInstrDescriptor* TargetInstrDescriptors = 0;
-}
-
 TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
                                  unsigned numOpcodes)
   : desc(Desc), NumOpcodes(numOpcodes) {
-  // FIXME: TargetInstrDescriptors should not be global
-  assert(TargetInstrDescriptors == NULL && desc != NULL
-         && "TargetMachine data structure corrupt; maybe you tried to create another TargetMachine? (only one may exist in a program)");
-  TargetInstrDescriptors = desc; // initialize global variable
 }
 
 TargetInstrInfo::~TargetInstrInfo() {
-  TargetInstrDescriptors = NULL; // reset global variable
 }
 
 /// findTiedToSrcOperand - Returns the operand that is tied to the specified






More information about the llvm-commits mailing list