summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LLVMTargetMachine.cpp
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
commitca30f75703fa4f032b256bba445608c79e2bd82c (patch)
treeb40456328a2778db3ed1f5261b149d2baf6357bb /lib/CodeGen/LLVMTargetMachine.cpp
parent628c266aeea811beb83cd2b61a11d6e24e877bd7 (diff)
downloadllvm-ca30f75703fa4f032b256bba445608c79e2bd82c.tar.gz
llvm-ca30f75703fa4f032b256bba445608c79e2bd82c.tar.bz2
llvm-ca30f75703fa4f032b256bba445608c79e2bd82c.tar.xz
Make assert() message more informative.
PR11217. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 90501f0a56..268584c06c 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/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,