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
a29aa02e
Commit
a29aa02e
authored
May 05, 2014
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Use backend interface for type info expressions.
From-SVN: r210084
parent
c2ac23fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
gcc/go/gofrontend/expressions.cc
+7
-3
No files found.
gcc/go/gofrontend/expressions.cc
View file @
a29aa02e
...
@@ -14095,9 +14095,13 @@ Type_info_expression::do_get_tree(Translate_context* context)
...
@@ -14095,9 +14095,13 @@ Type_info_expression::do_get_tree(Translate_context* context)
default
:
default
:
go_unreachable
();
go_unreachable
();
}
}
tree
val_type_tree
=
type_to_tree
(
this
->
type
()
->
get_backend
(
gogo
));
mpz_t
cst
;
go_assert
(
val_type_tree
!=
error_mark_node
);
mpz_init_set_ui
(
cst
,
val
);
return
build_int_cstu
(
val_type_tree
,
val
);
Btype
*
int_btype
=
this
->
type
()
->
get_backend
(
gogo
);
Bexpression
*
ret
=
gogo
->
backend
()
->
integer_constant_expression
(
int_btype
,
cst
);
mpz_clear
(
cst
);
return
expr_to_tree
(
ret
);
}
}
// Dump ast representation for a type info expression.
// Dump ast representation for a type info expression.
...
...
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