aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>2014-07-18 14:23:58 +0000
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>2014-07-18 14:23:58 +0000
commit18bc4fff48f4caa7a3fa0750aa0fbecd3ff1ba93 (patch)
tree19a1d2de140a56753d70fb502f2c76bc74a59285 /clang/lib/CodeGen/CodeGenFunction.h
parent1be89f4977724896289e6d706690ada275e9f451 (diff)
downloadllvm-18bc4fff48f4caa7a3fa0750aa0fbecd3ff1ba93.zip
llvm-18bc4fff48f4caa7a3fa0750aa0fbecd3ff1ba93.tar.gz
llvm-18bc4fff48f4caa7a3fa0750aa0fbecd3ff1ba93.tar.bz2
Revert "Emit lifetime.start / lifetime.end markers for unnamed temporary objects."
This reverts commit dbf785a6432f78a8ec229665876647c4cc610d3d, while I qm investigating a buildbot failure. llvm-svn: 213380
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 285ef63..3692b02 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -990,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();
@@ -1690,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);