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:
parent
bde8112534
commit
13203c0416
@ -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…
x
Reference in New Issue
Block a user