Skip to content

Commit

Permalink
Merge pull request #3607 from sklam/enh/simplifylowering
Browse files Browse the repository at this point in the history
Some simplication to lowering
  • Loading branch information
seibert committed Jan 8, 2019
2 parents bf692cf + ee16aba commit d37d5a8
Show file tree
Hide file tree
Showing 9 changed files with 210 additions and 207 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ exclude =
numba/pylowering.py
numba/io_support.py
numba/parfor.py
numba/lowering.py
numba/numba_entry.py
numba/stencilparfor.py
numba/numpy_support.py
Expand Down
1 change: 0 additions & 1 deletion numba/datamodel/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ def __init__(self, dmm, fe_type):
@register_default(types.Dummy)
@register_default(types.ExceptionInstance)
@register_default(types.ExternalFunction)
@register_default(types.NumbaFunction)
@register_default(types.Macro)
@register_default(types.EnumClass)
@register_default(types.IntEnumClass)
Expand Down
5 changes: 3 additions & 2 deletions numba/jitclass/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,9 @@ def _add_linking_libs(context, call):
"""
Add the required libs for the callable to allow inlining.
"""
for lib in getattr(call, "libs", ()):
context.active_code_library.add_linking_library(lib)
libs = getattr(call, "libs", ())
if libs:
context.add_linking_libs(libs)


def register_class_type(cls, spec, class_ctor, builder):
Expand Down

0 comments on commit d37d5a8

Please sign in to comment.