comparison gcc/tree-streamer.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Data structures and functions for streaming trees. 1 /* Data structures and functions for streaming trees.
2 2
3 Copyright (C) 2011-2018 Free Software Foundation, Inc. 3 Copyright (C) 2011-2020 Free Software Foundation, Inc.
4 Contributed by Diego Novillo <dnovillo@google.com> 4 Contributed by Diego Novillo <dnovillo@google.com>
5 5
6 This file is part of GCC. 6 This file is part of GCC.
7 7
8 GCC is free software; you can redistribute it and/or modify it under 8 GCC is free software; you can redistribute it and/or modify it under
56 /* Next index to assign. */ 56 /* Next index to assign. */
57 unsigned next_idx; 57 unsigned next_idx;
58 }; 58 };
59 59
60 /* In tree-streamer-in.c. */ 60 /* In tree-streamer-in.c. */
61 tree streamer_read_string_cst (struct data_in *, struct lto_input_block *); 61 tree streamer_read_string_cst (class data_in *, class lto_input_block *);
62 tree streamer_read_chain (struct lto_input_block *, struct data_in *); 62 tree streamer_read_chain (class lto_input_block *, class data_in *);
63 tree streamer_alloc_tree (struct lto_input_block *, struct data_in *, 63 tree streamer_alloc_tree (class lto_input_block *, class data_in *,
64 enum LTO_tags); 64 enum LTO_tags);
65 void streamer_read_tree_body (struct lto_input_block *, struct data_in *, tree); 65 void streamer_read_tree_body (class lto_input_block *, class data_in *, tree);
66 tree streamer_get_pickled_tree (struct lto_input_block *, struct data_in *); 66 tree streamer_get_pickled_tree (class lto_input_block *, class data_in *);
67 void streamer_read_tree_bitfields (struct lto_input_block *, 67 void streamer_read_tree_bitfields (class lto_input_block *,
68 struct data_in *, tree); 68 class data_in *, tree);
69 69
70 /* In tree-streamer-out.c. */ 70 /* In tree-streamer-out.c. */
71 void streamer_write_string_cst (struct output_block *, 71 void streamer_write_string_cst (struct output_block *,
72 struct lto_output_stream *, tree); 72 struct lto_output_stream *, tree);
73 void streamer_write_chain (struct output_block *, tree, bool); 73 void streamer_write_chain (struct output_block *, tree, bool);
115 115
116 static inline machine_mode 116 static inline machine_mode
117 bp_unpack_machine_mode (struct bitpack_d *bp) 117 bp_unpack_machine_mode (struct bitpack_d *bp)
118 { 118 {
119 return (machine_mode) 119 return (machine_mode)
120 ((struct lto_input_block *) 120 ((class lto_input_block *)
121 bp->stream)->mode_table[bp_unpack_enum (bp, machine_mode, 1 << 8)]; 121 bp->stream)->mode_table[bp_unpack_enum (bp, machine_mode, 1 << 8)];
122 } 122 }
123 123
124 #endif /* GCC_TREE_STREAMER_H */ 124 #endif /* GCC_TREE_STREAMER_H */