summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTommi Rantala <tt.rantala@gmail.com>2012-09-19 11:05:43 +0300
committerTommi Rantala <tt.rantala@gmail.com>2012-09-28 14:50:03 +0300
commitee8df2628891435ebb95eee04668d5bbd6995723 (patch)
tree434b11caa4fdc9921d6e1355a73a5db5189453a8 /include
parenta9b5b10f23fe0f55e39fece22d5d4bfdf7f3bdfe (diff)
downloadlibunwind-ee8df2628891435ebb95eee04668d5bbd6995723.tar.gz
Constify `dwarf_to_unw_regnum_map'
Diffstat (limited to 'include')
-rw-r--r--include/dwarf_i.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dwarf_i.h b/include/dwarf_i.h
index 77f52fe9..0e728457 100644
--- a/include/dwarf_i.h
+++ b/include/dwarf_i.h
@@ -17,7 +17,7 @@
#ifndef dwarf_to_unw_regnum
# define dwarf_to_unw_regnum_map UNW_OBJ (dwarf_to_unw_regnum_map)
-extern uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
+extern const uint8_t dwarf_to_unw_regnum_map[DWARF_REGNUM_MAP_LENGTH];
/* REG is evaluated multiple times; it better be side-effects free! */
# define dwarf_to_unw_regnum(reg) \
(((reg) <= DWARF_REGNUM_MAP_LENGTH) ? dwarf_to_unw_regnum_map[reg] : 0)