Make this assertion more self-explanatory.

llvm-svn: 10879
This commit is contained in:
Brian Gaeke 2004-01-15 18:15:58 +00:00
parent a38ebcc476
commit 361c004b88
1 changed files with 2 additions and 2 deletions

View File

@ -23,13 +23,13 @@ namespace llvm {
//
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
}