generate_vla_size (compile_instance *compiler,
string_file *stream,
struct gdbarch *gdbarch,
- unsigned char *registers_used,
+ std::vector<bool> ®isters_used,
CORE_ADDR pc,
struct type *type,
struct symbol *sym)
generate_c_for_for_one_variable (compile_instance *compiler,
string_file *stream,
struct gdbarch *gdbarch,
- unsigned char *registers_used,
+ std::vector<bool> ®isters_used,
CORE_ADDR pc,
struct symbol *sym)
{
/* See compile-c.h. */
-gdb::unique_xmalloc_ptr<unsigned char>
+std::vector<bool>
generate_c_for_variable_locations (compile_instance *compiler,
string_file *stream,
struct gdbarch *gdbarch,
/* If we're already in the static or global block, there is nothing
to write. */
if (static_block == NULL || block == static_block)
- return NULL;
+ return {};
- gdb::unique_xmalloc_ptr<unsigned char> registers_used
- (XCNEWVEC (unsigned char, gdbarch_num_regs (gdbarch)));
+ std::vector<bool> registers_used (gdbarch_num_regs (gdbarch));
/* Ensure that a given name is only entered once. This reflects the
reality of shadowing. */
{
if (!symbol_seen (symhash.get (), sym))
generate_c_for_for_one_variable (compiler, stream, gdbarch,
- registers_used.get (), pc, sym);
+ registers_used, pc, sym);
}
/* If we just finished the outermost block of a function, we're