Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1776 from braddr/dwarf

expose dwarf_regno as a platform specific function
  • Loading branch information...
commit 60733bcee63b4bc0dd1b8e8c191fc2f0a1ad37fa 2 parents 7dcc72a + e75d8a2
Walter Bright WalterBright authored
2  src/backend/dwarf.c
View
@@ -149,6 +149,7 @@ struct CFA_state
CFA_reg regstates[17]; // register states
};
+#if TX86
int dwarf_regno(int reg)
{
assert(reg < NUMGENREGS);
@@ -162,6 +163,7 @@ int dwarf_regno(int reg)
return reg < 8 ? to_amd64_reg_map[reg] : reg;
}
}
+#endif
static CFA_state CFA_state_init_32 = // initial CFA state as defined by CIE
{ 0, // location
2  src/backend/dwarf.h
View
@@ -15,4 +15,6 @@ void dwarf_func_term(Symbol *sfunc);
unsigned dwarf_typidx(type *t);
unsigned dwarf_abbrev_code(unsigned char *data, size_t nbytes);
+int dwarf_regno(int reg);
+
#endif
2  src/backend/platform_stub.c
View
@@ -40,6 +40,8 @@ code* REGSAVE::save(code* c, int reg, unsigned* pidx) { assert(0); return NULL;
FuncParamRegs::FuncParamRegs(tym_t tyf) { assert(0); }
int FuncParamRegs::alloc(type *t, tym_t ty, unsigned char *preg1, unsigned char *preg2) { assert(0); return 0; }
+int dwarf_regno(int reg) { assert(0); return 0; }
+
code* prolog_ifunc(tym_t* tyf) { assert(0); return NULL; }
code* prolog_ifunc2(tym_t tyf, tym_t tym, bool pushds) { assert(0); return NULL; }
code* prolog_16bit_windows_farfunc(tym_t* tyf, bool* pushds) { assert(0); return NULL; }
Please sign in to comment.
Something went wrong with that request. Please try again.