From 9d302620c2951df414f31a9f0f7072de936bedb4 Mon Sep 17 00:00:00 2001
From: Danny Milosavljevic <dannym@scratchpost.org>
Date: Sat, 26 Dec 2020 16:26:27 +0100
Subject: [PATCH] arm-asm: Remove asm_error

---
 arm-asm.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/arm-asm.c b/arm-asm.c
index 812dad6d..a15cd758 100644
--- a/arm-asm.c
+++ b/arm-asm.c
@@ -34,11 +34,6 @@ ST_FUNC void gen_le32(int c);
 #define USING_GLOBALS
 #include "tcc.h"
 
-static void asm_error(void)
-{
-    tcc_error("ARM asm not implemented.");
-}
-
 /* XXX: make it faster ? */
 ST_FUNC void g(int c)
 {
@@ -71,12 +66,12 @@ ST_FUNC void gen_expr32(ExprValue *pe)
 
 ST_FUNC void asm_opcode(TCCState *s1, int opcode)
 {
-    asm_error();
+    tcc_error("internal error: asm_opcode not implemented");
 }
 
 ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier)
 {
-    asm_error();
+    tcc_error("internal error: subst_asm_operand not implemented");
 }
 
 /* generate prolog and epilog code for asm statement */