mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Change how MachineDebugInfo is fetched.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25089 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
292a1afb4a
commit
7ca9ab3f5c
@ -619,7 +619,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
default: assert(0 && "This action is not supported yet!");
|
default: assert(0 && "This action is not supported yet!");
|
||||||
case TargetLowering::Expand: {
|
case TargetLowering::Expand: {
|
||||||
if (TLI.isOperationLegal(ISD::DEBUG_LOC, MVT::Other)) {
|
if (TLI.isOperationLegal(ISD::DEBUG_LOC, MVT::Other)) {
|
||||||
MachineDebugInfo &DebugInfo = DAG.getMachineFunction().getDebugInfo();
|
MachineDebugInfo &DebugInfo = getMachineDebugInfo();
|
||||||
std::vector<SDOperand> Ops;
|
std::vector<SDOperand> Ops;
|
||||||
Ops.push_back(Tmp1); // chain
|
Ops.push_back(Tmp1); // chain
|
||||||
Ops.push_back(Node->getOperand(1)); // line #
|
Ops.push_back(Node->getOperand(1)); // line #
|
||||||
|
Loading…
x
Reference in New Issue
Block a user