mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-24 08:18:33 +00:00
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131974 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -985,10 +985,6 @@ public:
|
|||||||
/// other positive zero.
|
/// other positive zero.
|
||||||
bool isEqualTo(SDValue A, SDValue B) const;
|
bool isEqualTo(SDValue A, SDValue B) const;
|
||||||
|
|
||||||
/// isVerifiedDebugInfoDesc - Returns true if the specified SDValue has
|
|
||||||
/// been verified as a debug information descriptor.
|
|
||||||
bool isVerifiedDebugInfoDesc(SDValue Op) const;
|
|
||||||
|
|
||||||
/// UnrollVectorOp - Utility function used by legalize and lowering to
|
/// UnrollVectorOp - Utility function used by legalize and lowering to
|
||||||
/// "unroll" a vector operation by splitting out the scalars and operating
|
/// "unroll" a vector operation by splitting out the scalars and operating
|
||||||
/// on each element individually. If the ResNE is 0, fully unroll the vector
|
/// on each element individually. If the ResNE is 0, fully unroll the vector
|
||||||
|
|||||||
@@ -2347,16 +2347,6 @@ bool SelectionDAG::isEqualTo(SDValue A, SDValue B) const {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SelectionDAG::isVerifiedDebugInfoDesc(SDValue Op) const {
|
|
||||||
GlobalAddressSDNode *GA = dyn_cast<GlobalAddressSDNode>(Op);
|
|
||||||
if (!GA) return false;
|
|
||||||
if (GA->getOffset() != 0) return false;
|
|
||||||
const GlobalVariable *GV = dyn_cast<GlobalVariable>(GA->getGlobal());
|
|
||||||
if (!GV) return false;
|
|
||||||
return MF->getMMI().hasDebugInfo();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// getNode - Gets or creates the specified node.
|
/// getNode - Gets or creates the specified node.
|
||||||
///
|
///
|
||||||
SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT) {
|
SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, EVT VT) {
|
||||||
|
|||||||
@@ -244,9 +244,6 @@ LowerGlobalAddress(SDValue Op, SelectionDAG &DAG) const
|
|||||||
{
|
{
|
||||||
const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
|
const GlobalValue *GV = cast<GlobalAddressSDNode>(Op)->getGlobal();
|
||||||
SDValue GA = DAG.getTargetGlobalAddress(GV, Op.getDebugLoc(), MVT::i32);
|
SDValue GA = DAG.getTargetGlobalAddress(GV, Op.getDebugLoc(), MVT::i32);
|
||||||
// If it's a debug information descriptor, don't mess with it.
|
|
||||||
if (DAG.isVerifiedDebugInfoDesc(Op))
|
|
||||||
return GA;
|
|
||||||
return getGlobalAddressWrapper(GA, GV, DAG);
|
return getGlobalAddressWrapper(GA, GV, DAG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user