1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

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 bde8112534
commit 13203c0416

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
}