more tidying:

- Strength reduce the interface to LogicalPathComponent::getMaterialized
   to now just return a SILValue for the address.  The full "Materialize"
   structure hasn't been needed since MaterializeExpr got removed.
 - Move 'struct Materialize' out of SILGen.h into SILGenLValues.cpp now
   that it is only used for logical property materialization.
 - Drop the dead 'loc' argument on DeallocStackCleanup.  The location is
   already specified when the cleanup is emitted.


Swift SVN r12827
This commit is contained in:
Chris Lattner
2014-01-23 00:43:20 +00:00
parent 8fa61139ad
commit 2cf6d814c7
6 changed files with 67 additions and 60 deletions

View File

@@ -22,6 +22,7 @@
namespace swift {
namespace Lowering {
struct Materialize;
/// SGFContext - Internal context information for the SILGenFunction visitor.
///
@@ -865,8 +866,11 @@ public:
void deallocateUninitializedLocalVariable(SILLocation L, VarDecl *D);
/// Enter a cleanup to deallocate a stack variable.
CleanupHandle enterDeallocStackCleanup(SILLocation loc, SILValue address);
CleanupHandle enterDeallocStackCleanup(SILValue address);
/// Enter a cleanup to emit a destroyValue/destroyAddr of the specified value.
CleanupHandle enterDestroyCleanup(SILValue valueOrAddr);
/// Evaluate an Expr as an lvalue.
LValue emitLValue(Expr *E);