diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2006-11-30 07:10:43 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-30 07:10:43 +0000 |
| commit | fef6400f01b321178aecbdb7d17ef91a67aab7e4 (patch) | |
| tree | 1ce08ef6f8cb5fbf08105baef5aa8e82b66f5278 | |
| parent | 3c3ce98530f94548c8ac02f9ba01bd7749ad41be (diff) | |
| download | bcm5719-llvm-fef6400f01b321178aecbdb7d17ef91a67aab7e4.tar.gz bcm5719-llvm-fef6400f01b321178aecbdb7d17ef91a67aab7e4.zip | |
Remove the ugly SPARCV9 TargetInstrDescriptors hack.
llvm-svn: 32033
| -rw-r--r-- | llvm/lib/Target/TargetInstrInfo.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp index cc637ed4063..56b4e4194e5 100644 --- a/llvm/lib/Target/TargetInstrInfo.cpp +++ b/llvm/lib/Target/TargetInstrInfo.cpp @@ -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 |

