diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-12 20:45:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-12 20:45:03 +0000 |
commit | b6a2fc080f47eabdcaabf0101e9ca7c95e9d8bdc (patch) | |
tree | 1c32b7ff26477d32bff9f9ff6d722bacc3ed888d /include/llvm | |
parent | 8fea32f9ff5cec2165661a3da986abe29c9bddb1 (diff) |
eliminate the "MBBLabel" MCOperand type, and just use a MCSymbol for
MBB labels like everything else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCInst.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/llvm/MC/MCInst.h b/include/llvm/MC/MCInst.h index 10a896a668..0fc4d186b9 100644 --- a/include/llvm/MC/MCInst.h +++ b/include/llvm/MC/MCInst.h @@ -31,7 +31,6 @@ class MCOperand { kInvalid, ///< Uninitialized. kRegister, ///< Register operand. kImmediate, ///< Immediate operand. - kMBBLabel, ///< Basic block label. kExpr ///< Relocatable immediate operand. }; unsigned char Kind; @@ -40,10 +39,6 @@ class MCOperand { unsigned RegVal; int64_t ImmVal; const MCExpr *ExprVal; - struct { - unsigned FunctionNo; - unsigned BlockNo; - } MBBLabel; }; public: @@ -53,7 +48,6 @@ public: bool isValid() const { return Kind != kInvalid; } bool isReg() const { return Kind == kRegister; } bool isImm() const { return Kind == kImmediate; } - bool isMBBLabel() const { return Kind == kMBBLabel; } bool isExpr() const { return Kind == kExpr; } /// getReg - Returns the register number. @@ -77,15 +71,6 @@ public: ImmVal = Val; } - unsigned getMBBLabelFunction() const { - assert(isMBBLabel() && "This is not a machine basic block"); - return MBBLabel.FunctionNo; - } - unsigned getMBBLabelBlock() const { - assert(isMBBLabel() && "This is not a machine basic block"); - return MBBLabel.BlockNo; - } - const MCExpr *getExpr() const { assert(isExpr() && "This is not an expression"); return ExprVal; @@ -107,13 +92,6 @@ public: Op.ImmVal = Val; return Op; } - static MCOperand CreateMBBLabel(unsigned Fn, unsigned MBB) { - MCOperand Op; - Op.Kind = kMBBLabel; - Op.MBBLabel.FunctionNo = Fn; - Op.MBBLabel.BlockNo = MBB; - return Op; - } static MCOperand CreateExpr(const MCExpr *Val) { MCOperand Op; Op.Kind = kExpr; |