+2008-09-22 Rafael Espindola <espindola@google.com>
+
+ * plugin-api.h (ld_plugin_status): Remove comma from the last item.
+ Use C style comment.
+ (ld_plugin_api_version, ld_plugin_output_file_type,
+ ld_plugin_symbol_kind, ld_plugin_symbol_visibility,
+ ld_plugin_symbol_resolution, ld_plugin_level, ld_plugin_tag): Remove
+ comma from the last item.
+
2008-09-18 Cary Coutant <ccoutant@google.com>
Add plugin functionality for link-time optimization (LTO).
enum ld_plugin_status
{
LDPS_OK = 0,
- LDPS_NO_SYMS, // Attempt to get symbols that haven't been added.
- LDPS_ERR,
+ LDPS_NO_SYMS, /* Attempt to get symbols that haven't been added. */
+ LDPS_ERR
/* Additional Error codes TBD. */
};
enum ld_plugin_api_version
{
- LD_PLUGIN_API_VERSION = 1,
+ LD_PLUGIN_API_VERSION = 1
};
/* The type of output file being generated by the linker. */
{
LDPO_REL,
LDPO_EXEC,
- LDPO_DYN,
+ LDPO_DYN
};
/* An input file managed by the plugin library. */
LDPK_WEAKDEF,
LDPK_UNDEF,
LDPK_WEAKUNDEF,
- LDPK_COMMON,
+ LDPK_COMMON
};
/* The visibility of the symbol. */
LDPV_DEFAULT,
LDPV_PROTECTED,
LDPV_INTERNAL,
- LDPV_HIDDEN,
+ LDPV_HIDDEN
};
/* How a symbol is resolved. */
LDPR_PREEMPTED_IR,
LDPR_RESOLVED_IR,
LDPR_RESOLVED_EXEC,
- LDPR_RESOLVED_DYN,
+ LDPR_RESOLVED_DYN
};
/* The plugin library's "claim file" handler. */
LDPL_INFO,
LDPL_WARNING,
LDPL_ERROR,
- LDPL_FATAL,
+ LDPL_FATAL
};
/* Values for the tv_tag field of the transfer vector. */
LDPT_ADD_SYMBOLS,
LDPT_GET_SYMBOLS,
LDPT_ADD_INPUT_FILE,
- LDPT_MESSAGE,
+ LDPT_MESSAGE
};
/* The plugin transfer vector. */