aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineModuleInfo.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-05-10 22:34:59 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-05-10 22:34:59 +0000
commiteeb37e0b80f6f71b7620099083e7c10a9978ef86 (patch)
tree788c3ad913a586e08e3be62143ae10ee5e76d2ea /include/llvm/CodeGen/MachineModuleInfo.h
parentc1fe16610ade320bade1a970fa2721b0558321b8 (diff)
Allow multiple invokes per landing pad. This (probably) fixes PR1410.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineModuleInfo.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h
index 6e5899eb75..4771a38788 100644
--- a/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/include/llvm/CodeGen/MachineModuleInfo.h
@@ -33,6 +33,7 @@
#include "llvm/Support/Dwarf.h"
#include "llvm/Support/DataTypes.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/UniqueVector.h"
#include "llvm/GlobalValue.h"
#include "llvm/Pass.h"
@@ -955,8 +956,8 @@ public:
///
struct LandingPadInfo {
MachineBasicBlock *LandingPadBlock; // Landing pad block.
- unsigned BeginLabel; // Label prior to invoke.
- unsigned EndLabel; // Label after invoke.
+ SmallVector<unsigned, 1> BeginLabels; // Labels prior to invoke.
+ SmallVector<unsigned, 1> EndLabels; // Labels after invoke.
unsigned LandingPadLabel; // Label at beginning of landing pad.
Function *Personality; // Personality function.
std::vector<unsigned> TypeIds; // List of type ids.
@@ -965,8 +966,6 @@ struct LandingPadInfo {
LandingPadInfo(MachineBasicBlock *MBB)
: LandingPadBlock(MBB)
- , BeginLabel(0)
- , EndLabel(0)
, LandingPadLabel(0)
, TypeIds()
, IsFilter(false)