mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Use the C personality function instead of the C++ personality function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140318 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26bcc701a2
commit
711395527e
@ -145,11 +145,9 @@ namespace {
|
||||
BasicBlock *CleanupBB = BasicBlock::Create(C, CleanupBBName, &F);
|
||||
Type *ExnTy = StructType::get(Type::getInt8PtrTy(C),
|
||||
Type::getInt32Ty(C), NULL);
|
||||
// FIXME: Assuming the C++ personality function probably isn't the best
|
||||
// thing in the world.
|
||||
Constant *PersFn =
|
||||
F.getParent()->
|
||||
getOrInsertFunction("__gxx_personality_v0",
|
||||
getOrInsertFunction("__gcc_personality_v0",
|
||||
FunctionType::get(Type::getInt32Ty(C), true));
|
||||
LandingPadInst *LPad = LandingPadInst::Create(ExnTy, PersFn, 1,
|
||||
"cleanup.lpad",
|
||||
|
Loading…
x
Reference in New Issue
Block a user