Make assert() message more informative.
authorJim Grosbach <grosbach@apple.com>
Tue, 25 Oct 2011 20:30:48 +0000 (20:30 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 25 Oct 2011 20:30:48 +0000 (20:30 +0000)
PR11217.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142956 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LLVMTargetMachine.cpp

index 90501f0a56d90207c6e3895240ea07b84ceb1835..268584c06c132e0ab9aaeb37212ba7d04de63117 100644 (file)
@@ -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,