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 @@
1/*************************************************************/1/*************************************************************/
2/*2/*
3 * RISCV64 dummy assembler for TCC3 * RISCV64 assembler for TCC
4 *4 *
5 */5 */
6 6
@@ -19,11 +19,6 @@ ST_FUNC void gen_le32(int c); · 12 unmodified lines
19#define USING_GLOBALS19#define USING_GLOBALS
20#include "tcc.h"20#include "tcc.h"
21 21
22static void asm_error(void)
23{
24 tcc_error("RISCV64 asm not implemented.");
25}
26
27/* XXX: make it faster ? */22/* XXX: make it faster ? */
28ST_FUNC void g(int c)23ST_FUNC void g(int c)
29{24{
@@ -56,12 +51,12 @@ ST_FUNC void gen_expr32(ExprValue *pe) · 26 unmodified lines
56 51
57ST_FUNC void asm_opcode(TCCState *s1, int opcode)52ST_FUNC void asm_opcode(TCCState *s1, int opcode)
58{53{
59 asm_error();54 tcc_error("RISCV64 asm not implemented.");
60}55}
61 56
62ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier)57ST_FUNC void subst_asm_operand(CString *add_str, SValue *sv, int modifier)
63{58{
64 asm_error();59 tcc_error("RISCV64 asm not implemented.");
65}60}
66 61
67/* generate prolog and epilog code for asm statement */62/* generate prolog and epilog code for asm statement */
@@ -81,12 +76,12 @@ ST_FUNC void asm_compute_constraints(ASMOperand *operands, · 13 unmodified lines
81 76
82ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str)77ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str)
83{78{
84 asm_error();79 tcc_error("RISCV64 asm not implemented.");
85}80}
86 81
87ST_FUNC int asm_parse_regvar (int t)82ST_FUNC int asm_parse_regvar (int t)
88{83{
89 asm_error();84 tcc_error("RISCV64 asm not implemented.");
90 return -1;85 return -1;
91}86}
92 87

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