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

Brian Gaeke gaeke at cs.uiuc.edu
Thu Jan 15 12:17:02 PST 2004


Changes in directory llvm/lib/Target:

TargetInstrInfo.cpp updated: 1.10 -> 1.11

---
Log message:

Make this assertion more self-explanatory.


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.10 llvm/lib/Target/TargetInstrInfo.cpp:1.11
--- llvm/lib/Target/TargetInstrInfo.cpp:1.10	Tue Nov 11 16:41:33 2003
+++ llvm/lib/Target/TargetInstrInfo.cpp	Thu Jan 15 12:15:58 2004
@@ -23,13 +23,13 @@
 // 
 const TargetInstrDescriptor* TargetInstrDescriptors = 0;
 
-
 TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
 				 unsigned DescSize,
 				 unsigned NumRealOpCodes)
   : desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
   // 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
 }
 





More information about the llvm-commits mailing list