mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-22 09:49:59 +00:00
b152fa74b4
* src/abg-dwarf-reader.cc (insert_decl_into_ir_under_scope) (build_namespace_decl_and_add_to_ir, build_enum_type) (build_class_type_and_add_to_ir, build_ir_node_from_die) (build_ir_node_from_die): Remove. * tests/data/test-read-dwarf/test0.abi: Update because now type IDs can be used before they are defined. * tests/data/test-read-dwarf/test1.abi: Likewise. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
93 lines
7.2 KiB
Plaintext
93 lines
7.2 KiB
Plaintext
<abi-corpus path='data/test-read-dwarf/test1'>
|
|
<abi-instr version='1.0' address-size='64' path='test1.cc'>
|
|
<class-decl name='b0' visibility='default' is-declaration-only='yes' id='type-id-1'/>
|
|
<class-decl name='b0' size-in-bits='128' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='1' column='1' def-of-decl-id='type-id-1' id='type-id-2'>
|
|
<data-member access='public' layout-offset-in-bits='0'>
|
|
<var-decl name='m0' type-id='type-id-3' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='3' column='1'/>
|
|
</data-member>
|
|
<data-member access='public' layout-offset-in-bits='64'>
|
|
<var-decl name='m1' type-id='type-id-4' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='4' column='1'/>
|
|
</data-member>
|
|
<member-function access='public' constructor='yes'>
|
|
<function-decl name='b0' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-5' is-artificial='yes'/>
|
|
</function-decl>
|
|
</member-function>
|
|
</class-decl>
|
|
<type-decl name='long long int' size-in-bits='64' alignment-in-bits='64' id='type-id-3'/>
|
|
<type-decl name='char' size-in-bits='8' alignment-in-bits='8' id='type-id-4'/>
|
|
<pointer-type-def type-id='type-id-1' size-in-bits='64' alignment-in-bits='64' id='type-id-5'/>
|
|
<class-decl name='b1' visibility='default' is-declaration-only='yes' id='type-id-6'/>
|
|
<class-decl name='b1' size-in-bits='128' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='7' column='1' def-of-decl-id='type-id-6' id='type-id-7'>
|
|
<data-member access='public' layout-offset-in-bits='0'>
|
|
<var-decl name='m0' type-id='type-id-8' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='9' column='1'/>
|
|
</data-member>
|
|
<data-member access='public' layout-offset-in-bits='64'>
|
|
<var-decl name='m1' type-id='type-id-4' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='10' column='1'/>
|
|
</data-member>
|
|
<member-function access='public' constructor='yes'>
|
|
<function-decl name='b1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-9' is-artificial='yes'/>
|
|
</function-decl>
|
|
</member-function>
|
|
</class-decl>
|
|
<type-decl name='double' size-in-bits='64' alignment-in-bits='64' id='type-id-8'/>
|
|
<pointer-type-def type-id='type-id-6' size-in-bits='64' alignment-in-bits='64' id='type-id-9'/>
|
|
<class-decl name='s0' visibility='default' is-declaration-only='yes' id='type-id-10'/>
|
|
<class-decl name='s0' size-in-bits='384' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='13' column='1' def-of-decl-id='type-id-10' id='type-id-11'>
|
|
<base-class access='public' layout-offset-in-bits='24' is-virtual='yes' type-id='type-id-2'/>
|
|
<base-class access='public' layout-offset-in-bits='32' is-virtual='yes' type-id='type-id-7'/>
|
|
<member-type access='public'>
|
|
<typedef-decl name='integer' type-id='type-id-13' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='15' column='1' id='type-id-12'/>
|
|
</member-type>
|
|
<member-type access='public'>
|
|
<typedef-decl name='byte' type-id='type-id-15' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='16' column='1' id='type-id-14'/>
|
|
</member-type>
|
|
<data-member access='public' layout-offset-in-bits='64'>
|
|
<var-decl name='m0' type-id='type-id-12' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='18' column='1'/>
|
|
</data-member>
|
|
<data-member access='public' layout-offset-in-bits='96'>
|
|
<var-decl name='m1' type-id='type-id-14' visibility='default' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='19' column='1'/>
|
|
</data-member>
|
|
<member-function access='public' constructor='yes'>
|
|
<function-decl name='s0' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-16' is-artificial='yes'/>
|
|
<parameter type-id='type-id-13' is-artificial='yes'/>
|
|
<parameter type-id='type-id-17'/>
|
|
</function-decl>
|
|
</member-function>
|
|
<member-function access='public' constructor='yes'>
|
|
<function-decl name='s0' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='21' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-16' is-artificial='yes'/>
|
|
<parameter type-id='type-id-13' is-artificial='yes'/>
|
|
</function-decl>
|
|
</member-function>
|
|
<member-function access='public' destructor='yes'>
|
|
<function-decl name='~s0' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='27' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-16' is-artificial='yes'/>
|
|
<parameter type-id='type-id-13' is-artificial='yes'/>
|
|
</function-decl>
|
|
</member-function>
|
|
<member-function access='public'>
|
|
<function-decl name='mem_fun' mangled-name='_ZN2s07mem_funEv' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='36' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-16' is-artificial='yes'/>
|
|
<return type-id='type-id-12'/>
|
|
</function-decl>
|
|
</member-function>
|
|
</class-decl>
|
|
<type-decl name='int' size-in-bits='32' alignment-in-bits='32' id='type-id-13'/>
|
|
<type-decl name='unsigned char' size-in-bits='8' alignment-in-bits='8' id='type-id-15'/>
|
|
<pointer-type-def type-id='type-id-10' size-in-bits='64' alignment-in-bits='64' id='type-id-16'/>
|
|
<qualified-type-def type-id='type-id-10' const='yes' id='type-id-18'/>
|
|
<reference-type-def kind='lvalue' type-id='type-id-18' size-in-bits='64' alignment-in-bits='64' id='type-id-17'/>
|
|
<reference-type-def kind='lvalue' type-id='type-id-11' size-in-bits='64' alignment-in-bits='64' id='type-id-19'/>
|
|
<qualified-type-def type-id='type-id-19' const='yes' id='type-id-20'/>
|
|
<function-decl name='foo' mangled-name='_Z3fooR2s0' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='42' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<parameter type-id='type-id-20' name='s' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='42' column='1'/>
|
|
</function-decl>
|
|
<function-decl name='main' filepath='/home/dodji/git/libabigail/dwarf/tests/data/test-read-dwarf/test1.cc' line='48' column='1' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='64'>
|
|
<return type-id='type-id-13'/>
|
|
</function-decl>
|
|
</abi-instr>
|
|
</abi-corpus>
|