forked from OSchip/llvm-project
Make this assertion more self-explanatory.
llvm-svn: 10879
This commit is contained in:
parent
a38ebcc476
commit
361c004b88
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue