/* C/C++ language support for compilation.
- Copyright (C) 2014-2016 Free Software Foundation, Inc.
+ Copyright (C) 2014-2017 Free Software Foundation, Inc.
This file is part of GDB.
return new INSTTYPE (context);
}
-// A C-language implementation of get_compile_context.
+/* A C-language implementation of get_compile_context. */
struct compile_instance *
c_get_compile_context (void)
GCC_FE_VERSION_0, GCC_C_FE_VERSION_0);
}
-// A C++-language implementation of get_compile_context.
+/* A C++-language implementation of get_compile_context. */
struct compile_instance *
cplus_get_compile_context (void)
fputs_unfiltered ("};\n\n", stream);
}
-// C-language policy to emit a push user expression pragma into BUF.
+/* C-language policy to emit a push user expression pragma into BUF. */
struct c_push_user_expression
{
{
void pop_user_expression (struct ui_file *buf)
{
- // Nothing to do.
+ /* Nothing to do. */
}
};
}
};
-// C++-language policy to emit a push user expression pragma into BUF.
+/* C++-language policy to emit a push user expression pragma into
+ BUF. */
struct cplus_push_user_expression
{
}
};
-// C++-language policy to emit a pop user expression pragma into BUF.
+/* C++-language policy to emit a pop user expression pragma into BUF. */
struct cplus_pop_user_expression
{
private:
- // The compile instance to be used for compilation and type-conversion.
+ /* The compile instance to be used for compilation and
+ type-conversion. */
CompileInstanceType *m_instance;
- // The architecture to be used.
+ /* The architecture to be used. */
struct gdbarch *m_arch;
};
-// Types used for C and C++ program computations.
+/* The types used for C and C++ program computations. */
typedef compile_program<compile_c_instance, c_push_user_expression,
pop_user_expression_nop, c_add_code_header,
cplus_add_code_header, c_add_code_footer,
cplus_add_input> cplus_compile_program;
-// The la_compute_program method for C.
+/* The la_compute_program method for C. */
char *
c_compute_program (struct compile_instance *inst,
return program.compute (input, expr_block, expr_pc);
}
-// The la_compute_program method for C++.
+/* The la_compute_program method for C++. */
char *
cplus_compute_program (struct compile_instance *inst,