mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-07 07:41:20 +00:00
Make assert() message more informative.
PR11217. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
628c266aee
commit
ca30f75703
@ -121,7 +121,8 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
|
|||||||
// we'll crash later.
|
// we'll crash later.
|
||||||
// Provide the user with a useful error message about what's wrong.
|
// Provide the user with a useful error message about what's wrong.
|
||||||
assert(AsmInfo && "MCAsmInfo not initialized."
|
assert(AsmInfo && "MCAsmInfo not initialized."
|
||||||
"Make sure you include the correct TargetSelect.h!");
|
"Make sure you include the correct TargetSelect.h"
|
||||||
|
"and that InitializeAllTargetMCs() is being invoked!");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user