History

riscv64-asm: Remove asm_error

Danny Milosavljevic committed 5 years ago

Commit 7f3114e1 parent 14325741 file · +5 −10Browse files

Unified · Split

riscv64-asm.c+5−10
@@ -1,6 +1,6 @@
11 /*************************************************************/
22 /*
3− * RISCV64 dummy assembler for TCC
3+ * RISCV64 assembler for TCC
44 *
55 */
66
@@ -19,11 +19,6 @@ ST_FUNC void gen_le32(int c); · 12 unmodified lines
1919 #define USING_GLOBALS
2020 #include "tcc.h"
2121
22−static void asm_error(void)
23−{
24− tcc_error("RISCV64 asm not implemented.");
25−}
26−
2722 /* XXX: make it faster ? */
2823 ST_FUNC void g(int c)
2924 {
@@ -56,12 +51,12 @@ ST_FUNC void gen_expr32(ExprValue *pe) · 26 unmodified lines
5651
5752 ST_FUNC void asm_opcode(TCCState *s1, int opcode)
5853 {
59− asm_error();
54+ tcc_error("RISCV64 asm not implemented.");
6055 }
6156
6257 ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier)
6358 {
64− asm_error();
59+ tcc_error("RISCV64 asm not implemented.");
6560 }
6661
6762 /* generate prolog and epilog code for asm statement */
@@ -81,12 +76,12 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 13 unmodified lines
8176
8277 ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str)
8378 {
84− asm_error();
79+ tcc_error("RISCV64 asm not implemented.");
8580 }
8681
8782 ST_FUNC int asm_parse_regvar (int t)
8883 {
89− asm_error();
84+ tcc_error("RISCV64 asm not implemented.");
9085 return -1;
9186 }
9287

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t