diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-30 00:39:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-30 00:39:25 +0000 |
commit | c24096559dad926ea3554782fd76240f5de9fe7d (patch) | |
tree | 00723cf9ea8ffbd9bed1549a6191b81e9b1d0565 /include/llvm/CodeGen/MachineOperand.h | |
parent | 64348df5c9a4757e82b2a6b081b3537dfe37313b (diff) |
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85551 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineOperand.h')
-rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index eaa87dbba6..eede2cc50c 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -23,7 +23,6 @@ class ConstantFP; class BlockAddress; class MachineBasicBlock; class GlobalValue; -class MDNode; class MachineInstr; class TargetMachine; class MachineRegisterInfo; @@ -43,8 +42,7 @@ public: MO_JumpTableIndex, ///< Address of indexed Jump Table for switch MO_ExternalSymbol, ///< Name of external global symbol MO_GlobalAddress, ///< Address of a global value - MO_BlockAddress, ///< Address of a basic block - MO_Metadata ///< Metadata info + MO_BlockAddress ///< Address of a basic block }; private: @@ -111,7 +109,6 @@ private: const char *SymbolName; // For MO_ExternalSymbol. GlobalValue *GV; // For MO_GlobalAddress. BlockAddress *BA; // For MO_BlockAddress. - MDNode *Node; // For MO_Metadata. } Val; int64_t Offset; // An offset from the object. } OffsetedInfo; @@ -161,8 +158,6 @@ public: bool isSymbol() const { return OpKind == MO_ExternalSymbol; } /// isBlockAddress - Tests if this is a MO_BlockAddress operand. bool isBlockAddress() const { return OpKind == MO_BlockAddress; } - /// isMetadata - Tests if this is a MO_Metadata operand. - bool isMetadata() const { return OpKind == MO_Metadata; } //===--------------------------------------------------------------------===// // Accessors for Register Operands @@ -304,10 +299,6 @@ public: return Contents.OffsetedInfo.Val.BA; } - MDNode *getMDNode() const { - return Contents.OffsetedInfo.Val.Node; - } - /// getOffset - Return the offset from the symbol in this operand. This always /// returns 0 for ExternalSymbol operands. int64_t getOffset() const { @@ -331,8 +322,7 @@ public: } void setOffset(int64_t Offset) { - assert((isGlobal() || isSymbol() || isCPI() || isBlockAddress() || - isMetadata()) && + assert((isGlobal() || isSymbol() || isCPI() || isBlockAddress()) && "Wrong MachineOperand accessor"); Contents.OffsetedInfo.Offset = Offset; } @@ -451,14 +441,6 @@ public: Op.setOffset(0); // Offset is always 0. return Op; } - static MachineOperand CreateMDNode(MDNode *N, int64_t Offset, - unsigned char TargetFlags = 0) { - MachineOperand Op(MachineOperand::MO_Metadata); - Op.Contents.OffsetedInfo.Val.Node = N; - Op.setOffset(Offset); - Op.setTargetFlags(TargetFlags); - return Op; - } friend class MachineInstr; friend class MachineRegisterInfo; |