File tree Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Expand file tree Collapse file tree 2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -7505,24 +7505,6 @@ RValue SILGenFunction::emitRValue(Expr *E, SGFContext C) {
7505
7505
return RValueEmitter (*this ).visit (E, C);
7506
7506
}
7507
7507
7508
- RValue SILGenFunction::emitPlusOneRValue (Expr *E, SGFContext C) {
7509
- Scope S (*this , SILLocation (E));
7510
- assert (!E->getType ()->hasLValueType () &&
7511
- " l-values must be emitted with emitLValue" );
7512
- return S.popPreservingValue (
7513
- RValueEmitter (*this ).visit (E, C.withSubExprSideEffects ()));
7514
- }
7515
-
7516
- RValue SILGenFunction::emitPlusZeroRValue (Expr *E) {
7517
- // Check if E is a case that we know how to emit at plus zero. If so, handle
7518
- // it here.
7519
- //
7520
- // TODO: Fill this in.
7521
-
7522
- // Otherwise, we go through the +1 path and borrow the result.
7523
- return emitPlusOneRValue (E).borrow (*this , SILLocation (E));
7524
- }
7525
-
7526
7508
static void emitIgnoredPackExpansion (SILGenFunction &SGF,
7527
7509
PackExpansionExpr *E) {
7528
7510
auto expansionType =
Original file line number Diff line number Diff line change @@ -1827,21 +1827,6 @@ class LLVM_LIBRARY_VISIBILITY SILGenFunction
1827
1827
StorageReferenceOperationKind kind);
1828
1828
Expr *findStorageReferenceExprForBorrowExpr (Expr *argExpr);
1829
1829
1830
- // / Emit the given expression as a +1 r-value.
1831
- // /
1832
- // / *NOTE* This creates the +1 r-value and then pushes that +1 r-value through
1833
- // / a scope. So all temporaries resulting will be cleaned up.
1834
- // /
1835
- // / *NOTE* +0 vs +1 is ignored by this function. The only reason to use the
1836
- // / SGFContext argument is to pass in an initialization.
1837
- RValue emitPlusOneRValue (Expr *E, SGFContext C = SGFContext());
1838
-
1839
- // / Emit the given expression as a +0 r-value.
1840
- // /
1841
- // / *NOTE* This does not scope the creation of the +0 r-value. The reason why
1842
- // / this is done is that +0 r-values can not be pushed through scopes.
1843
- RValue emitPlusZeroRValue (Expr *E);
1844
-
1845
1830
// / Emit the given expression as an r-value with the given conversion
1846
1831
// / context. This may be more efficient --- and, in some cases,
1847
1832
// / semantically different --- than emitting the expression and then
You can’t perform that action at this time.
0 commit comments