diff options
author | Than McIntosh <thanm@google.com> | 2017-01-11 18:15:16 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-01-11 18:15:16 +0000 |
commit | a2182c9cc2a1d887457e38d13e63598f85443020 (patch) | |
tree | 01781f4b52d85c765576949475a9459eba3e295c /gcc/go/gofrontend/backend.h | |
parent | 1f258a55a9df39ecef35d0049c3bf703d6cdbe53 (diff) | |
download | gcc-a2182c9cc2a1d887457e38d13e63598f85443020.zip gcc-a2182c9cc2a1d887457e38d13e63598f85443020.tar.gz gcc-a2182c9cc2a1d887457e38d13e63598f85443020.tar.bz2 |
compiler: add containing Bfunction to conditional_expression
Add containing Bfunction to Backend::conditional_expression
method signature, since the back end might need to create a
temporary when generating IR for this construct.
Reviewed-on: https://go-review.googlesource.com/35056
From-SVN: r244330
Diffstat (limited to 'gcc/go/gofrontend/backend.h')
-rw-r--r-- | gcc/go/gofrontend/backend.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/go/gofrontend/backend.h b/gcc/go/gofrontend/backend.h index cad659a..93835d9 100644 --- a/gcc/go/gofrontend/backend.h +++ b/gcc/go/gofrontend/backend.h @@ -324,12 +324,12 @@ class Backend compound_expression(Bstatement* bstat, Bexpression* bexpr, Location) = 0; // Return an expression that executes THEN_EXPR if CONDITION is true, or - // ELSE_EXPR otherwise and returns the result as type BTYPE. ELSE_EXPR - // may be NULL. BTYPE may be NULL. + // ELSE_EXPR otherwise and returns the result as type BTYPE, within the + // specified function FUNCTION. ELSE_EXPR may be NULL. BTYPE may be NULL. virtual Bexpression* - conditional_expression(Btype* btype, Bexpression* condition, - Bexpression* then_expr, Bexpression* else_expr, - Location) = 0; + conditional_expression(Bfunction* function, Btype* btype, + Bexpression* condition, Bexpression* then_expr, + Bexpression* else_expr, Location) = 0; // Return an expression for the unary operation OP EXPR. // Supported values of OP are (from operators.h): |