From: Petr Machata Date: Thu, 7 Oct 2010 01:49:52 +0000 (+0200) Subject: dwarflint: Shuffle code X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=338e828a3d4b881312d3e03b02a894ccf3f308c4;p=thirdparty%2Felfutils.git dwarflint: Shuffle code --- diff --git a/dwarflint/dwarf_version-imp.hh b/dwarflint/dwarf_version-imp.hh index e2d1b601c..126850d7f 100644 --- a/dwarflint/dwarf_version-imp.hh +++ b/dwarflint/dwarf_version-imp.hh @@ -77,6 +77,25 @@ public: storage_class_t storage_class () const; }; +template +struct preset_form + : public full_form +{ + preset_form (int a_name, form_width_t a_width) + : full_form (a_name, dw_class_set (Classes...), a_width, StorClass) + {} +}; + +template +struct preset_attribute + : public basic_attribute +{ + preset_attribute (int a_name) + : basic_attribute (a_name, dw_class_set (Classes...)) + {} +}; + + struct offset_form : public basic_form { @@ -95,30 +114,12 @@ struct address_form storage_class_t storage_class () const; }; -template -struct preset_form - : public full_form -{ - preset_form (int a_name, form_width_t a_width) - : full_form (a_name, dw_class_set (Classes...), a_width, StorClass) - {} -}; - struct string_form : public preset_form { string_form (int a_name); }; -template -struct preset_attribute - : public basic_attribute -{ - preset_attribute (int a_name) - : basic_attribute (a_name, dw_class_set (Classes...)) - {} -}; - typedef preset_form block_form; typedef preset_form const_form; typedef preset_form ref_form;