mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-13 08:26:02 +00:00
Create a mapping between the landing pad basic block and the call site index for later use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5250,6 +5250,8 @@ void SelectionDAGBuilder::LowerCallTo(ImmutableCallSite CS, SDValue Callee,
|
|||||||
unsigned CallSiteIndex = MMI.getCurrentCallSite();
|
unsigned CallSiteIndex = MMI.getCurrentCallSite();
|
||||||
if (CallSiteIndex) {
|
if (CallSiteIndex) {
|
||||||
MMI.setCallSiteBeginLabel(BeginLabel, CallSiteIndex);
|
MMI.setCallSiteBeginLabel(BeginLabel, CallSiteIndex);
|
||||||
|
LPadToCallSiteMap[LandingPad] = CallSiteIndex;
|
||||||
|
|
||||||
// Now that the call site is handled, stop tracking it.
|
// Now that the call site is handled, stop tracking it.
|
||||||
MMI.setCurrentCallSite(0);
|
MMI.setCurrentCallSite(0);
|
||||||
}
|
}
|
||||||
|
@@ -320,6 +320,9 @@ public:
|
|||||||
/// GFI - Garbage collection metadata for the function.
|
/// GFI - Garbage collection metadata for the function.
|
||||||
GCFunctionInfo *GFI;
|
GCFunctionInfo *GFI;
|
||||||
|
|
||||||
|
/// LPadToBeginLabelMap - Map a landing pad to the begin label.
|
||||||
|
DenseMap<MachineBasicBlock*, unsigned> LPadToCallSiteMap;
|
||||||
|
|
||||||
/// HasTailCall - This is set to true if a call in the current
|
/// HasTailCall - This is set to true if a call in the current
|
||||||
/// block has been translated as a tail call. In this case,
|
/// block has been translated as a tail call. In this case,
|
||||||
/// no subsequent DAG nodes should be created.
|
/// no subsequent DAG nodes should be created.
|
||||||
|
Reference in New Issue
Block a user