diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/CGTemporaries.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/CodeGen/CGTemporaries.cpp | 49 | 
1 files changed, 0 insertions, 49 deletions
diff --git a/contrib/llvm/tools/clang/lib/CodeGen/CGTemporaries.cpp b/contrib/llvm/tools/clang/lib/CodeGen/CGTemporaries.cpp deleted file mode 100644 index 0387daeb654f..000000000000 --- a/contrib/llvm/tools/clang/lib/CodeGen/CGTemporaries.cpp +++ /dev/null @@ -1,49 +0,0 @@ -//===--- CGTemporaries.cpp - Emit LLVM Code for C++ temporaries -----------===// -// -//                     The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This contains code dealing with C++ code generation of temporaries -// -//===----------------------------------------------------------------------===// - -#include "CodeGenFunction.h" -using namespace clang; -using namespace CodeGen; - -namespace { -  struct DestroyTemporary : EHScopeStack::Cleanup { -    const CXXDestructorDecl *dtor; -    llvm::Value *addr; -    DestroyTemporary(const CXXDestructorDecl *dtor, llvm::Value *addr) -      : dtor(dtor), addr(addr) {} -    void Emit(CodeGenFunction &CGF, Flags flags) { -      CGF.EmitCXXDestructorCall(dtor, Dtor_Complete, /*ForVirtualBase=*/false, -                                addr); -    } -  }; -} - -/// Emits all the code to cause the given temporary to be cleaned up. -void CodeGenFunction::EmitCXXTemporary(const CXXTemporary *Temporary, -                                       llvm::Value *Ptr) { -  pushFullExprCleanup<DestroyTemporary>(NormalAndEHCleanup, -                                        Temporary->getDestructor(), -                                        Ptr); -} - -RValue -CodeGenFunction::EmitExprWithCleanups(const ExprWithCleanups *E, -                                      AggValueSlot Slot) { -  RunCleanupsScope Scope(*this); -  return EmitAnyExpr(E->getSubExpr(), Slot); -} - -LValue CodeGenFunction::EmitExprWithCleanupsLValue(const ExprWithCleanups *E) { -  RunCleanupsScope Scope(*this); -  return EmitLValue(E->getSubExpr()); -}  | 
