[llvm-commits] [llvm-gcc-4.2] r66436 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Evan Cheng
evan.cheng at apple.com
Mon Mar 9 13:26:25 PDT 2009
Author: evancheng
Date: Mon Mar 9 15:26:24 2009
New Revision: 66436
URL: http://llvm.org/viewvc/llvm-project?rev=66436&view=rev
Log:
Enhance error message to help debugging.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=66436&r1=66435&r2=66436&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Mon Mar 9 15:26:24 2009
@@ -418,7 +418,7 @@
const TargetMachineRegistry::entry *TME =
TargetMachineRegistry::getClosestStaticTargetForModule(*TheModule, Err);
if (!TME) {
- cerr << "Did not get a target machine!\n";
+ cerr << "Did not get a target machine! Triplet is " << TargetTriple << '\n';
exit(1);
}
More information about the llvm-commits
mailing list