mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Silence anonymous type in anonymous union warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177135 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -211,25 +211,30 @@ private:
|
||||
|
||||
MipsOperand(KindTy K) : MCParsedAsmOperand(), Kind(K) {}
|
||||
|
||||
struct Token {
|
||||
const char *Data;
|
||||
unsigned Length;
|
||||
};
|
||||
|
||||
struct RegOp {
|
||||
unsigned RegNum;
|
||||
RegisterKind Kind;
|
||||
};
|
||||
|
||||
struct ImmOp {
|
||||
const MCExpr *Val;
|
||||
};
|
||||
|
||||
struct MemOp {
|
||||
unsigned Base;
|
||||
const MCExpr *Off;
|
||||
};
|
||||
|
||||
union {
|
||||
struct {
|
||||
const char *Data;
|
||||
unsigned Length;
|
||||
} Tok;
|
||||
|
||||
struct {
|
||||
unsigned RegNum;
|
||||
RegisterKind Kind;
|
||||
} Reg;
|
||||
|
||||
struct {
|
||||
const MCExpr *Val;
|
||||
} Imm;
|
||||
|
||||
struct {
|
||||
unsigned Base;
|
||||
const MCExpr *Off;
|
||||
} Mem;
|
||||
struct Token Tok;
|
||||
struct RegOp Reg;
|
||||
struct ImmOp Imm;
|
||||
struct MemOp Mem;
|
||||
};
|
||||
|
||||
SMLoc StartLoc, EndLoc;
|
||||
|
Reference in New Issue
Block a user