mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-27 12:26:08 +00:00
Make this assertion more self-explanatory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10879 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,13 +23,13 @@ namespace llvm {
|
|||||||
//
|
//
|
||||||
const TargetInstrDescriptor* TargetInstrDescriptors = 0;
|
const TargetInstrDescriptor* TargetInstrDescriptors = 0;
|
||||||
|
|
||||||
|
|
||||||
TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
|
TargetInstrInfo::TargetInstrInfo(const TargetInstrDescriptor* Desc,
|
||||||
unsigned DescSize,
|
unsigned DescSize,
|
||||||
unsigned NumRealOpCodes)
|
unsigned NumRealOpCodes)
|
||||||
: desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
|
: desc(Desc), descSize(DescSize), numRealOpCodes(NumRealOpCodes) {
|
||||||
// FIXME: TargetInstrDescriptors should not be global
|
// 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
|
TargetInstrDescriptors = desc; // initialize global variable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user