summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-04-07 10:07:47 +0000
committerDaniel Jasper <djasper@google.com>2015-04-07 10:07:47 +0000
commit303c3ac92563b138341f5bfda65f96c55290da3f (patch)
tree4c794b87268a62742045eea8344cec92a6e9eed0 /clang/lib/CodeGen/CodeGenFunction.cpp
parent68757ed2e96f67faacea1fbd7728dbe0f8a4aee5 (diff)
downloadbcm5719-llvm-303c3ac92563b138341f5bfda65f96c55290da3f.tar.gz
bcm5719-llvm-303c3ac92563b138341f5bfda65f96c55290da3f.zip
Revert "[SEH] Implement filter capturing in CodeGen"
Test fails: http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_check/3182/ llvm-svn: 234306
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index e59a50ee76c..7de61e354ae 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -279,20 +279,6 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) {
Builder.ClearInsertionPoint();
}
- // If some of our locals escaped, insert a call to llvm.frameescape in the
- // entry block.
- if (!EscapedLocals.empty()) {
- // Invert the map from local to index into a simple vector. There should be
- // no holes.
- SmallVector<llvm::Value *, 4> EscapeArgs;
- EscapeArgs.resize(EscapedLocals.size());
- for (auto &Pair : EscapedLocals)
- EscapeArgs[Pair.second] = Pair.first;
- llvm::Function *FrameEscapeFn = llvm::Intrinsic::getDeclaration(
- &CGM.getModule(), llvm::Intrinsic::frameescape);
- CGBuilderTy(AllocaInsertPt).CreateCall(FrameEscapeFn, EscapeArgs);
- }
-
// Remove the AllocaInsertPt instruction, which is just a convenience for us.
llvm::Instruction *Ptr = AllocaInsertPt;
AllocaInsertPt = nullptr;
OpenPOWER on IntegriCloud