[intermediate representation] improvements on constants

This commit is contained in:
Philippe Tillet
2019-01-03 03:42:10 -05:00
parent 8dbb565200
commit 8f4aafb4ac
8 changed files with 170 additions and 17 deletions

View File

@@ -477,8 +477,9 @@ ir::type *type_name::type(ir::module *mod) const{
}
/* String literal */
ir::value* string_literal::codegen(ir::module *mod) const{
return ir::constant_data_array::get_string(mod->get_context(), value_);
ir::value* string_literal::codegen(ir::module *) const{
throw std::runtime_error("not supported");
// return ir::constant_data_array::get_string(mod->get_context(), value_);
}
/* Constant */