From e5327a0f5ab7b300970d86a13c45f6df84c4661c Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 7 Nov 2011 06:27:45 -0800 Subject: [PATCH] Update debug prints --- builtins.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builtins.cpp b/builtins.cpp index f848fbbc..3c40cf40 100644 --- a/builtins.cpp +++ b/builtins.cpp @@ -244,7 +244,9 @@ lCreateISPCSymbol(llvm::Function *func, SymbolTable *symbolTable) { const Type *returnType = lLLVMTypeToISPCType(ftype->getReturnType(), intAsUnsigned); if (returnType == NULL) { - Debug(SourcePos(), "Failed: return type not representable."); + Debug(SourcePos(), "Failed: return type not representable for " + "builtin %s.", name.c_str()); + ftype->dump(); // return type not representable in ispc -> not callable from ispc return false; } @@ -257,7 +259,8 @@ lCreateISPCSymbol(llvm::Function *func, SymbolTable *symbolTable) { const llvm::Type *llvmArgType = ftype->getParamType(j); const Type *type = lLLVMTypeToISPCType(llvmArgType, intAsUnsigned); if (type == NULL) { - Debug(SourcePos(), "Failed: type of parameter %d not representable", j); + Debug(SourcePos(), "Failed: type of parameter %d not " + "representable for builtin %s", j, name.c_str()); return false; } anyIntArgs |=