mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Remove dead code.
llvm-svn: 85551
This commit is contained in:
parent
adf4f4b7f2
commit
134ea45684
@ -108,13 +108,6 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
const MachineInstrBuilder &addMetadata(MDNode *N,
|
||||
int64_t Offset = 0,
|
||||
unsigned char TargetFlags = 0) const {
|
||||
MI->addOperand(MachineOperand::CreateMDNode(N, Offset, TargetFlags));
|
||||
return *this;
|
||||
}
|
||||
|
||||
const MachineInstrBuilder &addExternalSymbol(const char *FnName,
|
||||
unsigned char TargetFlags = 0) const {
|
||||
MI->addOperand(MachineOperand::CreateES(FnName, TargetFlags));
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user