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
This commit is contained in:
Anton Korobeynikov
2007-05-10 22:34:59 +00:00
parent c1fe16610a
commit eeb37e0b80
3 changed files with 79 additions and 62 deletions
+3 -4
View File
@@ -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)