From: Matthias Braun Date: Fri, 26 Feb 2010 13:55:26 +0000 (+0000) Subject: the java frontend keeps methods in class types X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=0378ccc621a98322785250f96d85d3b32dc0cad1;hp=efeb47dedbe27fad0a289ee92c873e2461dbdaca;p=libfirm the java frontend keeps methods in class types [r27225] --- diff --git a/ir/be/begnuas.c b/ir/be/begnuas.c index 28dd243f1..edebbf8b8 100644 --- a/ir/be/begnuas.c +++ b/ir/be/begnuas.c @@ -396,6 +396,11 @@ static be_gas_section_t determine_section(be_gas_decl_env_t *env, return section | GAS_SECTION_FLAG_TLS; } + /* the java frontend keeps some functions inside classes */ + if (is_Class_type(owner)) { + return determine_basic_section(entity); + } + panic("Couldn't determine section for %+F?!?", entity); }