aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-10-10 04:05:00 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-10-10 04:05:00 +0000
commit5d1159ebe95b0ac0152a5905369a83b2350e9352 (patch)
treee1c0aaef43014894ccb87e08a628b9d3ff006e4e /clang/lib/CodeGen/CodeGenFunction.h
parent49dadc0bc3607f97877577e43b25ba17cd70093a (diff)
downloadllvm-5d1159ebe95b0ac0152a5905369a83b2350e9352.zip
llvm-5d1159ebe95b0ac0152a5905369a83b2350e9352.tar.gz
llvm-5d1159ebe95b0ac0152a5905369a83b2350e9352.tar.bz2
Revert r218865 because it introduced PR21236, a crash in codegen emitting the try block.
llvm-svn: 219470
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 1c5111a5..92a7431 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -445,23 +445,6 @@ public:
new (Buffer + sizeof(Header)) T(a0, a1, a2, a3);
}
- /// \brief Queue a cleanup to be pushed after finishing the current
- /// full-expression.
- template <class T, class A0, class A1>
- void pushCleanupAfterFullExpr(CleanupKind Kind, A0 a0, A1 a1) {
- assert(!isInConditionalBranch() && "can't defer conditional cleanup");
-
- LifetimeExtendedCleanupHeader Header = { sizeof(T), Kind };
-
- size_t OldSize = LifetimeExtendedCleanupStack.size();
- LifetimeExtendedCleanupStack.resize(
- LifetimeExtendedCleanupStack.size() + sizeof(Header) + Header.Size);
-
- char *Buffer = &LifetimeExtendedCleanupStack[OldSize];
- new (Buffer) LifetimeExtendedCleanupHeader(Header);
- new (Buffer + sizeof(Header)) T(a0, a1);
- }
-
/// Set up the last cleaup that was pushed as a conditional
/// full-expression cleanup.
void initFullExprCleanup();
@@ -614,10 +597,6 @@ public:
void PopCleanupBlocks(EHScopeStack::stable_iterator OldCleanupStackSize,
size_t OldLifetimeExtendedStackSize);
- /// \brief Moves deferred cleanups from lifetime-extended variables from
- /// the given position on top of the stack
- void MoveDeferedCleanups(size_t OldLifetimeExtendedSize);
-
void ResolveBranchFixups(llvm::BasicBlock *Target);
/// The given basic block lies in the current EH scope, but may be a
@@ -1134,9 +1113,6 @@ public:
void pushLifetimeExtendedDestroy(CleanupKind kind, llvm::Value *addr,
QualType type, Destroyer *destroyer,
bool useEHCleanupForArray);
- void pushLifetimeEndMarker(StorageDuration SD,
- llvm::Value *ReferenceTemporary,
- llvm::Value *SizeForLifeTimeMarkers);
void pushStackRestore(CleanupKind kind, llvm::Value *SPMem);
void emitDestroy(llvm::Value *addr, QualType type, Destroyer *destroyer,
bool useEHCleanupForArray);
@@ -1740,9 +1716,6 @@ public:
void EmitCXXTemporary(const CXXTemporary *Temporary, QualType TempType,
llvm::Value *Ptr);
- llvm::Value *EmitLifetimeStart(uint64_t Size, llvm::Value *Addr);
- void EmitLifetimeEnd(llvm::Value *Size, llvm::Value *Addr);
-
llvm::Value *EmitCXXNewExpr(const CXXNewExpr *E);
void EmitCXXDeleteExpr(const CXXDeleteExpr *E);