aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineOperand.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-03-14 22:01:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-03-14 22:01:01 +0000
commitf8e43be758c94e21634d1e9e7c22fd5d218f7423 (patch)
tree5b31e5103434f132997b7a9fd4b49ef8b94ed027 /include/llvm/CodeGen/MachineOperand.h
parent23a1d0c1613002073e4340deb34449a61826c93c (diff)
downloadexternal_llvm-f8e43be758c94e21634d1e9e7c22fd5d218f7423.zip
external_llvm-f8e43be758c94e21634d1e9e7c22fd5d218f7423.tar.gz
external_llvm-f8e43be758c94e21634d1e9e7c22fd5d218f7423.tar.bz2
Back out r48353. Not needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48375 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineOperand.h')
-rw-r--r--include/llvm/CodeGen/MachineOperand.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index b4601e1..d62c8f8 100644
--- a/include/llvm/CodeGen/MachineOperand.h
+++ b/include/llvm/CodeGen/MachineOperand.h
@@ -33,16 +33,15 @@ class MachineRegisterInfo;
class MachineOperand {
public:
enum MachineOperandType {
- MO_Register, // Register operand
- MO_Immediate, // Immediate operand
- MO_FPImmediate, // FP immediate operand
+ MO_Register, // Register operand.
+ MO_Immediate, // Immediate Operand
+ MO_FPImmediate,
MO_MachineBasicBlock, // MachineBasicBlock reference
MO_FrameIndex, // Abstract Stack Frame Index
MO_ConstantPoolIndex, // Address of indexed Constant in Constant Pool
MO_JumpTableIndex, // Address of indexed Jump Table for switch
MO_ExternalSymbol, // Name of external global symbol
- MO_GlobalAddress, // Address of a global value
- MO_Undef // Undef
+ MO_GlobalAddress // Address of a global value
};
private:
@@ -131,7 +130,6 @@ public:
bool isJumpTableIndex() const { return OpKind == MO_JumpTableIndex; }
bool isGlobalAddress() const { return OpKind == MO_GlobalAddress; }
bool isExternalSymbol() const { return OpKind == MO_ExternalSymbol; }
- bool isUndef() const { return OpKind == MO_Undef; }
bool isReg() const { return OpKind == MO_Register; }
bool isImm() const { return OpKind == MO_Immediate; }
@@ -377,11 +375,6 @@ public:
Op.setOffset(Offset);
return Op;
}
- static MachineOperand CreateUndef() {
- MachineOperand Op(MachineOperand::MO_Undef);
- return Op;
- }
-
const MachineOperand &operator=(const MachineOperand &MO) {
OpKind = MO.OpKind;
IsDef = MO.IsDef;