From 29cfb67e281166c0e47dcc294da211482bfba3ce Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 30 Jan 2008 18:18:23 +0000 Subject: Even though InsertAtEndOfBasicBlock is an ugly hack it still deserves a proper name. Rename it to EmitInstrWithCustomInserter since it does not necessarily insert instruction at the end. llvm-svn: 46562 --- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 293d0233811..543a9fb9dce 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp @@ -715,7 +715,7 @@ void ScheduleDAG::EmitNode(SDNode *Node, unsigned InstanceNo, } else { // Insert this instruction into the end of the basic block, potentially // taking some custom action. - BB = DAG.getTargetLoweringInfo().InsertAtEndOfBasicBlock(MI, BB); + BB = DAG.getTargetLoweringInfo().EmitInstrWithCustomInserter(MI, BB); } // Additional results must be an physical register def. -- cgit v1.2.3