diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-16 12:06:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-16 12:06:18 +0200 |
commit | e4b1b83a5a0fd902824071d5db04d7cda17e2f88 (patch) | |
tree | fd5a5a1905394132a269c74b077b7013191f3f0a /odb/pragma.hxx | |
parent | bc6e269d1221f27d239044b376cc2c6e36dd1428 (diff) |
Implement before/after pragmas for virtual data member ordering
Diffstat (limited to 'odb/pragma.hxx')
-rw-r--r-- | odb/pragma.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/pragma.hxx b/odb/pragma.hxx index bde438f..d6b0f42 100644 --- a/odb/pragma.hxx +++ b/odb/pragma.hxx @@ -21,12 +21,16 @@ struct virt_declaration { virt_declaration (location_t l, + location_t o, + int ob, std::string const& n, gcc_tree_code_type tc, tree t) - : loc (l), name (n), tree_code (tc), type (t) {} + : loc (l), ord (o), ord_bias (ob), name (n), tree_code (tc), type (t) {} location_t loc; + location_t ord; // Ordering location for before/after support. + int ord_bias; // Ordering bias for the same locations. std::string name; gcc_tree_code_type tree_code; tree type; // Declaration's type. |