Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
7d70fde4
Commit
7d70fde4
authored
Aug 01, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid adding "IsLittleEndian" utility code if it's not used
parent
91f2c2ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
Cython/Compiler/FusedNode.py
Cython/Compiler/FusedNode.py
+1
-2
No files found.
Cython/Compiler/FusedNode.py
View file @
7d70fde4
...
...
@@ -560,8 +560,6 @@ class FusedCFuncDefNode(StatListNode):
"""
from
.
import
TreeFragment
,
Code
,
UtilityCode
env
.
use_utility_code
(
Code
.
UtilityCode
.
load_cached
(
"IsLittleEndian"
,
"ModuleSetupCode.c"
))
fused_types
=
self
.
_get_fused_base_types
([
arg
.
type
for
arg
in
self
.
node
.
args
if
arg
.
type
.
is_fused
])
...
...
@@ -638,6 +636,7 @@ class FusedCFuncDefNode(StatListNode):
if
normal_types
:
self
.
_fused_instance_checks
(
normal_types
,
pyx_code
,
env
)
if
buffer_types
or
pythran_types
:
env
.
use_utility_code
(
Code
.
UtilityCode
.
load_cached
(
"IsLittleEndian"
,
"ModuleSetupCode.c"
))
self
.
_buffer_checks
(
buffer_types
,
pythran_types
,
pyx_code
,
decl_code
,
env
)
if
has_object_fallback
:
pyx_code
.
context
.
update
(
specialized_type_name
=
'object'
)
...
...
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