Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Projects
Eclipse Titan
titan.core
Commits
5f21d860
Commit
5f21d860
authored
Feb 20, 2018
by
Kristof Szabados
Committed by
Gerrit Code Review
Feb 20, 2018
Browse files
Merge "Optimized function Type::can_have_coding"
parents
573a2dec
185f356d
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler2/Type.cc
View file @
5f21d860
...
...
@@ -3509,6 +3509,14 @@ namespace Common {
return
false
;
}
// optimization: if it already has the encoding set, then the answer is true
for
(
size_t
i
=
0
;
i
<
coding_table
.
size
();
++
i
)
{
if
(
coding_table
[
i
]
->
built_in
&&
coding_table
[
i
]
->
built_in_coding
==
coding
)
{
return
true
;
}
}
switch
(
typetype
)
{
case
T_SEQ_T
:
case
T_SEQ_A
:
...
...
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