summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-04-20 09:12:47 -0400
committerTom Stellard <[email protected]>2012-04-23 09:34:05 -0400
commitd7f9b6ce13dcfc4f1d7c84c121d66606f8d05f7b (patch)
tree77d506636b0917a239b7ca6f78bdb8e176c086c5
parentf5fc3ac284eb8312e8076a5a9d47a5c082ebb537 (diff)
radeon/llvm: Don't print an error message when there is no error
A blank line with an empty error message was being printed even when the target lookup succeeded.
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm_emit.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
index b4825690104..b409cb2175e 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp
@@ -81,9 +81,8 @@ radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes,
#endif
std::string err;
const Target * AMDGPUTarget = TargetRegistry::lookupTarget("r600", err);
- fprintf(stderr, "%s\n", err.c_str());
if(!AMDGPUTarget) {
- fprintf(stderr, "Can't find target\n");
+ fprintf(stderr, "Can't find target: %s\n", err.c_str());
return 1;
}