summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-01-15 18:15:58 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-01-15 18:15:58 +0000
commit361c004b88e3ad3fb94e16fb9624a5b89ae5cc09 (patch)
treee941a41d8e8d2a60975701617ac715fc6c4d7d83 /llvm/lib/Target
parenta38ebcc476a1293f328adfa7a2ae944143c7a8d7 (diff)
downloadbcm5719-llvm-361c004b88e3ad3fb94e16fb9624a5b89ae5cc09.tar.gz
bcm5719-llvm-361c004b88e3ad3fb94e16fb9624a5b89ae5cc09.zip
Make this assertion more self-explanatory.
llvm-svn: 10879
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/TargetInstrInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetInstrInfo.cpp b/llvm/lib/Target/TargetInstrInfo.cpp
index 0f9015f8a60..a3131bb319f 100644
--- a/llvm/lib/Target/TargetInstrInfo.cpp
+++ b/llvm/lib/Target/TargetInstrInfo.cpp
@@ -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
}
OpenPOWER on IntegriCloud