summaryrefslogtreecommitdiff
path: root/tools/perf/arch/s390/util/dwarf-regs.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/arch/s390/util/dwarf-regs.c')
-rw-r--r--tools/perf/arch/s390/util/dwarf-regs.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/tools/perf/arch/s390/util/dwarf-regs.c b/tools/perf/arch/s390/util/dwarf-regs.c
deleted file mode 100644
index 0469df02ee62..000000000000
--- a/tools/perf/arch/s390/util/dwarf-regs.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Mapping of DWARF debug register numbers into register names.
- *
- * Copyright IBM Corp. 2010
- * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
- *
- */
-
-#include <stddef.h>
-#include <dwarf-regs.h>
-
-#define NUM_GPRS 16
-
-static const char *gpr_names[NUM_GPRS] = {
- "%r0", "%r1", "%r2", "%r3", "%r4", "%r5", "%r6", "%r7",
- "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15",
-};
-
-const char *get_arch_regstr(unsigned int n)
-{
- return (n >= NUM_GPRS) ? NULL : gpr_names[n];
-}