mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-13 04:24:40 +00:00
New EH representation for MSVC compatibility
Summary: This introduces new instructions neccessary to implement MSVC-compatible exception handling support. Most of the middle-end and none of the back-end haven't been audited or updated to take them into account. Reviewers: rnk, JosephTremoulet, reames, nlewycky, rjmccall Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D11041 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2653,6 +2653,26 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
|
||||
void visitCleanupBlockInst(CleanupBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
|
||||
void visitCatchBlock(CatchBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
|
||||
void visitTerminateBlock(TerminateBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
|
||||
void visitCatchEndBlockInst(CatchEndBlockInst &I) {
|
||||
setShadow(&I, getCleanShadow(&I));
|
||||
setOrigin(&I, getCleanOrigin());
|
||||
}
|
||||
|
||||
void visitGetElementPtrInst(GetElementPtrInst &I) {
|
||||
handleShadowOr(I);
|
||||
}
|
||||
@ -2696,6 +2716,16 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
|
||||
// Nothing to do here.
|
||||
}
|
||||
|
||||
void visitCleanupReturnInst(CleanupReturnInst &CRI) {
|
||||
DEBUG(dbgs() << "CleanupReturn: " << CRI << "\n");
|
||||
// Nothing to do here.
|
||||
}
|
||||
|
||||
void visitCatchReturnInst(CatchReturnInst &CRI) {
|
||||
DEBUG(dbgs() << "CatchReturn: " << CRI << "\n");
|
||||
// Nothing to do here.
|
||||
}
|
||||
|
||||
void visitInstruction(Instruction &I) {
|
||||
// Everything else: stop propagating and check for poisoned shadow.
|
||||
if (ClDumpStrictInstructions)
|
||||
|
Reference in New Issue
Block a user