Update debug prints
This commit is contained in:
@@ -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 |=
|
||||||
|
|||||||
Reference in New Issue
Block a user