diff options
| author | Jim Grosbach <grosbach@apple.com> | 2011-10-25 20:30:48 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2011-10-25 20:30:48 +0000 |
| commit | a40f8c432ac3305b92679b4c6370815ea2ca2b68 (patch) | |
| tree | e83f7399894fd7a6f5f9c3bd3519167a55eec5db /llvm/lib/CodeGen | |
| parent | ae9aa3541e83271c50ab50b2d9c3d206489f3e95 (diff) | |
| download | bcm5719-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.cpp | 3 |
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, |

