Commit bb15689d authored by Bill Wendling's avatar Bill Wendling
Browse files

Merging r142956:

------------------------------------------------------------------------
r142956 | grosbach | 2011-10-25 13:30:48 -0700 (Tue, 25 Oct 2011) | 4 lines

Make assert() message more informative.

PR11217.

------------------------------------------------------------------------

llvm-svn: 142967
parent 3493a5de
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -119,7 +119,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,