Commit fe15b6f0 authored by sebastian.buchwald1's avatar sebastian.buchwald1
Browse files

Rename option group and use default value.

parent ce8fc9d7
......@@ -29,7 +29,7 @@
* Note: "X64 ABI" refers to the Windows ABI for x86_64 (the SysV ABI
* calls itself "AMD64 ABI").
*/
bool amd64_use_x64_abi;
bool amd64_use_x64_abi = false;
static const unsigned ignore_regs[] = {
REG_RSP,
......
......@@ -832,13 +832,12 @@ void be_init_arch_amd64(void)
FIRM_DBG_REGISTER(dbg, "firm.be.amd64.cg");
static const lc_opt_table_entry_t options[] = {
LC_OPT_ENT_BOOL("x64abi", "Use x64 ABI (otherwise system V)",
&amd64_use_x64_abi),
LC_OPT_ENT_BOOL("x64abi", "Use x64 ABI (otherwise system V)", &amd64_use_x64_abi),
LC_OPT_LAST
};
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
lc_opt_entry_t *x86_64_grp = lc_opt_get_grp(be_grp, "x86_64");
lc_opt_add_table(x86_64_grp, options);
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
lc_opt_entry_t *amd64_grp = lc_opt_get_grp(be_grp, "amd64");
lc_opt_add_table(amd64_grp, options);
amd64_init_finish();
amd64_init_transform();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment