Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
bc6ad87f
Commit
bc6ad87f
authored
Jun 21, 2013
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Really only make descriptors when needed.
From-SVN: r200280
parent
593bcbb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
21 deletions
+0
-21
gcc/go/gofrontend/expressions.cc
+0
-18
gcc/go/gofrontend/expressions.h
+0
-3
No files found.
gcc/go/gofrontend/expressions.cc
View file @
bc6ad87f
...
...
@@ -1242,24 +1242,6 @@ Func_expression::do_traverse(Traverse* traverse)
:
Expression
::
traverse
(
&
this
->
closure_
,
traverse
));
}
// Lower a function reference. If this reference is not called
// directly, make sure there is a function descriptor.
Expression
*
Func_expression
::
do_lower
(
Gogo
*
gogo
,
Named_object
*
,
Statement_inserter
*
,
int
)
{
// Make sure that the descriptor exists. FIXME: If the function is
// only ever called, and is never referenced otherwise, then we
// don't need the descriptor. We could do that with another pass
// over the tree.
if
(
this
->
closure_
==
NULL
&&
this
->
function_
->
is_function
()
&&
!
this
->
function_
->
func_value
()
->
is_method
())
this
->
function_
->
func_value
()
->
descriptor
(
gogo
,
this
->
function_
);
return
this
;
}
// Return the type of a function expression.
Type
*
...
...
gcc/go/gofrontend/expressions.h
View file @
bc6ad87f
...
...
@@ -1524,9 +1524,6 @@ class Func_expression : public Expression
int
do_traverse
(
Traverse
*
);
Expression
*
do_lower
(
Gogo
*
,
Named_object
*
,
Statement_inserter
*
,
int
);
Type
*
do_type
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment