summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-10-25 20:30:48 +0000
committerJim Grosbach <grosbach@apple.com>2011-10-25 20:30:48 +0000
commita40f8c432ac3305b92679b4c6370815ea2ca2b68 (patch)
treee83f7399894fd7a6f5f9c3bd3519167a55eec5db /llvm/lib/CodeGen
parentae9aa3541e83271c50ab50b2d9c3d206489f3e95 (diff)
downloadbcm5719-llvm-a40f8c432ac3305b92679b4c6370815ea2ca2b68.tar.gz
bcm5719-llvm-a40f8c432ac3305b92679b4c6370815ea2ca2b68.zip
Make assert() message more informative.
PR11217. llvm-svn: 142956
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 90501f0a56d..268584c06c1 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -121,7 +121,8 @@ LLVMTargetMachine::LLVMTargetMachine(const Target &T, StringRef Triple,
// we'll crash later.
// Provide the user with a useful error message about what's wrong.
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,
OpenPOWER on IntegriCloud