aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>2014-07-21 19:47:02 +0000
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>2014-07-21 19:47:02 +0000
commit6e24a465721c8c919c3f16402e7e756dd2a47a8d (patch)
tree733d6ec1d2e6b33ba3a85ebb0884279e674b0749 /clang/lib/CodeGen/CodeGenFunction.h
parent63a2d07f716e3f308da87d5aae1fb945aee034eb (diff)
downloadllvm-6e24a465721c8c919c3f16402e7e756dd2a47a8d.zip
llvm-6e24a465721c8c919c3f16402e7e756dd2a47a8d.tar.gz
llvm-6e24a465721c8c919c3f16402e7e756dd2a47a8d.tar.bz2
Revert "Emit lifetime.start / lifetime.end markers for unnamed temporary objects."
This commit did break the sanitizer-x86 bot. Revert it while investigating. llvm-svn: 213579
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index cd668e0..59cc30d 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -436,23 +436,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();
@@ -1007,23 +990,6 @@ private:
void EmitOpenCLKernelMetadata(const FunctionDecl *FD,
llvm::Function *Fn);
- /// Should we use the LLVM lifetime intrinsics for a local variable of the
- /// given size in bytes ?
- bool shouldUseLifetimeMarkers(unsigned Size) const;
-
- /// A cleanup to call @llvm.lifetime.end.
- class CallLifetimeEnd : public EHScopeStack::Cleanup {
- llvm::Value *Addr;
- llvm::Value *Size;
- public:
- CallLifetimeEnd(llvm::Value *addr, llvm::Value *size)
- : Addr(addr), Size(size) {}
-
- void Emit(CodeGenFunction &CGF, Flags flags) override {
- CGF.EmitLifetimeEnd(Size, Addr);
- }
- };
-
public:
CodeGenFunction(CodeGenModule &cgm, bool suppressNewContext=false);
~CodeGenFunction();
@@ -1707,9 +1673,6 @@ public:
void EmitCXXTemporary(const CXXTemporary *Temporary, QualType TempType,
llvm::Value *Ptr);
- void EmitLifetimeStart(llvm::Value *Size, llvm::Value *Addr);
- void EmitLifetimeEnd(llvm::Value *Size, llvm::Value *Addr);
-
llvm::Value *EmitCXXNewExpr(const CXXNewExpr *E);
void EmitCXXDeleteExpr(const CXXDeleteExpr *E);