[llvm-commits] [llvm] r142956 - /llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Jim Grosbach grosbach at apple.com
Tue Oct 25 13:30:48 PDT 2011


Author: grosbach
Date: Tue Oct 25 15:30:48 2011
New Revision: 142956

URL: http://llvm.org/viewvc/llvm-project?rev=142956&view=rev
Log:
Make assert() message more informative.

PR11217.

Modified:
    llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp

Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=142956&r1=142955&r2=142956&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Tue Oct 25 15:30:48 2011
@@ -121,7 +121,8 @@
   // 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,





More information about the llvm-commits mailing list