Update debug prints

This commit is contained in:
Matt Pharr
2011-11-07 06:27:45 -08:00
parent f8eb100c60
commit e5327a0f5a

View File

@@ -244,7 +244,9 @@ lCreateISPCSymbol(llvm::Function *func, SymbolTable *symbolTable) {
const Type *returnType = lLLVMTypeToISPCType(ftype->getReturnType(), const Type *returnType = lLLVMTypeToISPCType(ftype->getReturnType(),
intAsUnsigned); intAsUnsigned);
if (returnType == NULL) { 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 type not representable in ispc -> not callable from ispc
return false; return false;
} }
@@ -257,7 +259,8 @@ lCreateISPCSymbol(llvm::Function *func, SymbolTable *symbolTable) {
const llvm::Type *llvmArgType = ftype->getParamType(j); const llvm::Type *llvmArgType = ftype->getParamType(j);
const Type *type = lLLVMTypeToISPCType(llvmArgType, intAsUnsigned); const Type *type = lLLVMTypeToISPCType(llvmArgType, intAsUnsigned);
if (type == NULL) { 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; return false;
} }
anyIntArgs |= anyIntArgs |=