aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-30 07:10:43 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-30 07:10:43 +0000
commit6430bf0449e0ff5e8d344d3107f4ef2306de80ad (patch)
treef93c5e9504490ce7db996a5c30335c8a9db44336 /lib/Target/TargetInstrInfo.cpp
parent67f660cb080965ea93ed6d7265a67100f2fe38e4 (diff)
downloadexternal_llvm-6430bf0449e0ff5e8d344d3107f4ef2306de80ad.zip
external_llvm-6430bf0449e0ff5e8d344d3107f4ef2306de80ad.tar.gz
external_llvm-6430bf0449e0ff5e8d344d3107f4ef2306de80ad.tar.bz2
Remove the ugly SPARCV9 TargetInstrDescriptors hack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetInstrInfo.cpp')
-rw-r--r--lib/Target/TargetInstrInfo.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/Target/TargetInstrInfo.cpp b/lib/Target/TargetInstrInfo.cpp
index cc637ed..56b4e41 100644
--- a/lib/Target/TargetInstrInfo.cpp
+++ b/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