projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53b8d71
)
Make createEntity preserve the Entity on builtin functions.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Mon, 9 Mar 2009 09:26:42 +0000
(10:26 +0100)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Mon, 9 Mar 2009 09:26:42 +0000
(10:26 +0100)
VHDL.hs
patch
|
blob
|
history
diff --git
a/VHDL.hs
b/VHDL.hs
index 6f3705e421d6f0d55b16faef97054ac3f3462367..cdff47a0c1db9a257f9957f8299cdc8ace713343 100644
(file)
--- a/
VHDL.hs
+++ b/
VHDL.hs
@@
-38,12
+38,13
@@
getDesignFiles funcs =
createEntity ::
HsFunction -- | The function signature
-> FuncData -- | The function data collected so far
- -> Maybe Entity -- | The resulting entity
+ -> Maybe Entity -- | The resulting entity. Should return the existing
+ --- Entity for builtin functions.
createEntity hsfunc fdata =
case flatFunc fdata of
-- Skip (builtin) functions without a FlatFunction
- Nothing ->
Nothing
+ Nothing ->
funcEntity fdata
-- Create an entity for all other functions
Just flatfunc ->
let