* Use LI(S) to copy constants into registers intead of ADDI(S) as the latter is
[oota-llvm.git] / lib / Target / TargetInstrInfo.cpp
index 0f9015f8a60d2120d559ac6444bb6deeb5a6f755..efcf9db4eb7ee997dc523796981e108ab3e9aff0 100644 (file)
@@ -23,13 +23,12 @@ namespace llvm {
 // 
 const TargetInstrDescriptor* TargetInstrDescriptors = 0;
 
-
 TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
-                                unsigned DescSize,
-                                unsigned NumRealOpCodes)
-  : desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
+                                unsigned numOpcodes)
+  : desc(Desc), NumOpcodes(numOpcodes) {
   // FIXME: TargetInstrDescriptors should not be global
-  assert(TargetInstrDescriptors == NULL && desc != NULL);
+  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
 }