Lines Matching refs:closure
1485 Parser_closure closure(input_file->filename().c_str(), in read_input_script() local
1499 if (yyparse(&closure) != 0) in read_input_script()
1501 if (closure.found_incompatible_target()) in read_input_script()
1518 if (!closure.saw_inputs()) in read_input_script()
1522 for (Input_arguments::const_iterator p = closure.inputs()->begin(); in read_input_script()
1523 p != closure.inputs()->end(); in read_input_script()
1527 if (p + 1 == closure.inputs()->end()) in read_input_script()
1589 Parser_closure closure(filename, in read_script_file() local
1599 if (yyparse(&closure) != 0) in read_script_file()
1607 gold_assert(!closure.saw_inputs()); in read_script_file()
1656 Parser_closure closure("command line", posdep_options, true, in define_symbol() local
1659 if (yyparse(&closure) != 0) in define_symbol()
1662 gold_assert(!closure.saw_inputs()); in define_symbol()
2570 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in yylex() local
2571 const Token* token = closure->next_token(); in yylex()
2590 switch (closure->lex_mode()) in yylex()
2629 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in yyerror() local
2630 gold_error(_("%s:%d:%d: %s"), closure->filename(), closure->lineno(), in yyerror()
2631 closure->charpos(), message); in yyerror()
2639 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_extern() local
2640 closure->script_options()->add_symbol_reference(name, length); in script_add_extern()
2648 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_file() local
2659 if (closure->is_in_sysroot()) in script_add_file()
2670 const char* slash = strrchr(closure->filename(), '/'); in script_add_file()
2673 script_directory.assign(closure->filename(), in script_add_file()
2674 slash - closure->filename() + 1); in script_add_file()
2682 closure->position_dependent_options()); in script_add_file()
2683 Input_argument& arg = closure->inputs()->add_file(file); in script_add_file()
2684 arg.set_script_info(closure->script_info()); in script_add_file()
2692 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_library() local
2701 closure->position_dependent_options()); in script_add_library()
2702 Input_argument& arg = closure->inputs()->add_file(file); in script_add_library()
2703 arg.set_script_info(closure->script_info()); in script_add_library()
2720 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_start_group() local
2721 if (!closure->in_group()) in script_start_group()
2722 closure->inputs()->start_group(); in script_start_group()
2730 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_end_group() local
2731 if (!closure->in_group()) in script_end_group()
2732 closure->inputs()->end_group(); in script_end_group()
2740 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_start_as_needed() local
2741 closure->position_dependent_options().set_as_needed(true); in script_start_as_needed()
2749 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_end_as_needed() local
2750 closure->position_dependent_options().set_as_needed(false); in script_end_as_needed()
2779 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_symbol() local
2781 closure->script_options()->add_symbol_reference(name, length); in script_symbol()
2791 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_set_symbol() local
2794 closure->script_options()->add_symbol_assignment(name, length, in script_set_symbol()
2795 closure->parsing_defsym(), in script_set_symbol()
2797 closure->clear_skip_on_incompatible_target(); in script_set_symbol()
2806 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_assertion() local
2807 closure->script_options()->add_assertion(check, message, messagelen); in script_add_assertion()
2808 closure->clear_skip_on_incompatible_target(); in script_add_assertion()
2816 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_parse_option() local
2819 if (closure->command_line() == NULL) in script_parse_option()
2825 closure->filename(), closure->lineno(), closure->charpos()); in script_parse_option()
2832 closure->command_line()->process_one_option(1, &mutable_option, 0, in script_parse_option()
2838 closure->clear_skip_on_incompatible_target(); in script_parse_option()
2853 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_check_output_format() local
2858 if (closure->skip_on_incompatible_target()) in script_check_output_format()
2860 closure->set_found_incompatible_target(); in script_check_output_format()
2873 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_set_target() local
2877 closure->position_dependent_options().set_format_enum(format_enum); in script_set_target()
2886 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_search_dir() local
2887 if (closure->command_line() == NULL) in script_add_search_dir()
2890 closure->filename(), closure->lineno(), closure->charpos()); in script_add_search_dir()
2891 else if (!closure->command_line()->options().nostdlib()) in script_add_search_dir()
2904 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_push_lex_into_expression_mode() local
2905 closure->push_lex_mode(Lex::EXPRESSION); in script_push_lex_into_expression_mode()
2914 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_push_lex_into_version_mode() local
2915 if (closure->version_script()->is_finalized()) in script_push_lex_into_version_mode()
2917 closure->filename(), closure->lineno(), closure->charpos()); in script_push_lex_into_version_mode()
2918 closure->push_lex_mode(Lex::VERSION_SCRIPT); in script_push_lex_into_version_mode()
2926 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_pop_lex_mode() local
2927 closure->pop_lex_mode(); in script_pop_lex_mode()
2961 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_vers_depend() local
2963 all_deps = closure->version_script()->allocate_dependency_list(); in script_add_vers_depend()
2975 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_new_vers_pattern() local
2977 expressions = closure->version_script()->allocate_expression_list(); in script_new_vers_pattern()
2980 closure->get_current_language(), in script_new_vers_pattern()
3006 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_new_vers_node() local
3007 Version_tree* tree = closure->version_script()->allocate_version_tree(); in script_new_vers_node()
3019 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in version_script_push_lang() local
3038 closure->push_language(code); in version_script_push_lang()
3044 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in version_script_pop_lang() local
3045 closure->pop_language(); in version_script_pop_lang()
3053 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_start_sections() local
3054 closure->script_options()->script_sections()->start_sections(); in script_start_sections()
3055 closure->clear_skip_on_incompatible_target(); in script_start_sections()
3063 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_finish_sections() local
3064 closure->script_options()->script_sections()->finish_sections(); in script_finish_sections()
3073 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_start_output_section() local
3074 closure->script_options()->script_sections()->start_output_section(name, in script_start_output_section()
3085 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_finish_output_section() local
3086 closure->script_options()->script_sections()->finish_output_section(trail); in script_finish_output_section()
3094 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_data() local
3118 closure->script_options()->script_sections()->add_data(size, is_signed, val); in script_add_data()
3126 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_fill() local
3127 closure->script_options()->script_sections()->add_fill(val); in script_add_fill()
3138 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_input_section() local
3140 closure->script_options()->script_sections()->add_input_section(spec, keep); in script_add_input_section()
3149 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_data_segment_align() local
3150 if (!closure->script_options()->saw_sections_clause()) in script_data_segment_align()
3152 closure->filename(), closure->lineno(), closure->charpos()); in script_data_segment_align()
3154 closure->script_options()->script_sections()->data_segment_align(); in script_data_segment_align()
3163 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_data_segment_relro_end() local
3164 if (!closure->script_options()->saw_sections_clause()) in script_data_segment_relro_end()
3166 closure->filename(), closure->lineno(), closure->charpos()); in script_data_segment_relro_end()
3168 closure->script_options()->script_sections()->data_segment_relro_end(); in script_data_segment_relro_end()
3241 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_phdr() local
3245 Script_sections* ss = closure->script_options()->script_sections(); in script_add_phdr()
3248 closure->clear_skip_on_incompatible_target(); in script_add_phdr()
3291 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_saw_segment_start_expression() local
3292 Script_sections* ss = closure->script_options()->script_sections(); in script_saw_segment_start_expression()
3300 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_set_section_region() local
3301 if (!closure->script_options()->saw_sections_clause()) in script_set_section_region()
3305 closure->filename(), closure->lineno(), closure->charpos(), in script_set_section_region()
3310 Script_sections* ss = closure->script_options()->script_sections(); in script_set_section_region()
3315 closure->filename(), closure->lineno(), closure->charpos(), in script_set_section_region()
3327 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_add_memory() local
3328 Script_sections* ss = closure->script_options()->script_sections(); in script_add_memory()
3372 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_include_directive() local
3374 Command_line* cmdline = closure->command_line(); in script_include_directive()
3384 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_exp_function_origin() local
3385 Script_sections* ss = closure->script_options()->script_sections(); in script_exp_function_origin()
3403 Parser_closure* closure = static_cast<Parser_closure*>(closurev); in script_exp_function_length() local
3404 Script_sections* ss = closure->script_options()->script_sections(); in script_exp_function_length()