Remove debug printout.

This commit is contained in:
Christoffer Lerno
2021-05-31 23:20:01 +02:00
parent 95f39f42eb
commit 9fd6c06861
3 changed files with 1 additions and 6 deletions

View File

@@ -476,7 +476,6 @@ void llvm_emit_and_set_decl_alloca(GenContext *c, Decl *decl)
void llvm_emit_local_var_alloca(GenContext *c, Decl *decl)
{
assert(!decl->var.is_static);
printf("My name %s\n", decl->name);
llvm_emit_and_set_decl_alloca(c, decl);
if (llvm_use_debug(c))
{

View File

@@ -2494,7 +2494,7 @@ void llvm_emit_parameter(GenContext *c, LLVMValueRef **args, ABIArgInfo *info, B
case ABI_ARG_DIRECT_PAIR:
{
llvm_value_addr(c, be_value);
printf("Handle invalid alignment");
printf("TODO: Handle invalid alignment\n");
// Here we do the following transform:
// struct -> { lo, hi } -> lo, hi
LLVMTypeRef lo = llvm_abi_type(c, info->direct_pair.lo);

View File

@@ -814,10 +814,6 @@ Decl *parse_decl(Context *context)
}
decl->var.failable = failable;
decl->var.is_static = is_static;
if (is_static)
{
printf("Added static to %s %d\n", decl->name, decl->var.is_static);
}
return decl;
}