summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7016cf6)
raw | patch | inline | side by side (parent: 7016cf6)
author | Bill Wendling <isanbard@gmail.com> | |
Tue, 4 Oct 2011 22:00:35 +0000 (22:00 +0000) | ||
committer | Bill Wendling <isanbard@gmail.com> | |
Tue, 4 Oct 2011 22:00:35 +0000 (22:00 +0000) |
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141125 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | patch | blob | history | |
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h | patch | blob | history |
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index daefaf0fa05f038e4d05405c7e2d95c9ed766c99..6eb862a052563b8412df369df11f28ec27f1cac4 100644 (file)
unsigned CallSiteIndex = MMI.getCurrentCallSite();
if (CallSiteIndex) {
MMI.setCallSiteBeginLabel(BeginLabel, CallSiteIndex);
+ LPadToCallSiteMap[LandingPad] = CallSiteIndex;
+
// Now that the call site is handled, stop tracking it.
MMI.setCurrentCallSite(0);
}
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
index 9039f4defa89e624442ecc4b1589b57c4e1a6efb..521e4d39384a741b79eaef48d2a2440569963f6a 100644 (file)
/// GFI - Garbage collection metadata for the function.
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
/// block has been translated as a tail call. In this case,
/// no subsequent DAG nodes should be created.