mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-09 22:17:33 +02:00
Store cgen-id in the analysis DB
This commit is contained in:
parent
a9c5d5d268
commit
189728d571
1 changed files with 5 additions and 5 deletions
|
@ -915,6 +915,9 @@
|
||||||
(with-fnc (ast:lambda-id (closure->lam fun)) (lambda (fnc)
|
(with-fnc (ast:lambda-id (closure->lam fun)) (lambda (fnc)
|
||||||
(if (and #f (adbf:well-known fnc))
|
(if (and #f (adbf:well-known fnc))
|
||||||
#f
|
#f
|
||||||
|
;; TODO: raw lambda is called:
|
||||||
|
;; use adbf:cgen-id to get it -
|
||||||
|
;(this-cont (string-append "__lambda_" (number->string lid)))
|
||||||
;;(c-code
|
;;(c-code
|
||||||
;; (string-append
|
;; (string-append
|
||||||
;; (c:allocs->str (c:allocs cfun) "\n")
|
;; (c:allocs->str (c:allocs cfun) "\n")
|
||||||
|
@ -1125,11 +1128,8 @@
|
||||||
(if (equal? cps? '(#f))
|
(if (equal? cps? '(#f))
|
||||||
(set! inline-lambdas (cons id inline-lambdas)))
|
(set! inline-lambdas (cons id inline-lambdas)))
|
||||||
(when ast:lam
|
(when ast:lam
|
||||||
TODO: store the allocated ID within the adbf
|
(with-fnc! ast:lam (lambda (fnc)
|
||||||
(with-fnc! ast:lam (lambda ()
|
(adbf:set-cgen-id! fnc id))))
|
||||||
(adbf:set-cge
|
|
||||||
)
|
|
||||||
)
|
|
||||||
id))
|
id))
|
||||||
|
|
||||||
; get-lambda : lambda-id -> (symbol -> string)
|
; get-lambda : lambda-id -> (symbol -> string)
|
||||||
|
|
Loading…
Add table
Reference in a new issue