From 338e828a3d4b881312d3e03b02a894ccf3f308c4 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 7 Oct 2010 03:49:52 +0200 Subject: [PATCH] dwarflint: Shuffle code --- dwarflint/dwarf_version-imp.hh | 37 +++++++++++++++++----------------- 1 file changed, 19 insertions(+), 18 deletions(-) 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; -- 2.47.3