X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcompiler%2Ftarget-main.lisp;h=f9b6c7003f895c2f01c51267204abb3a3f37401b;hb=c1aeac123df223746249567a9c0d2f656d1222cb;hp=2b53bd4675da6db30bc2c6297762aa1e7caee8a0;hpb=416152f084604094445a758ff399871132dff2bd;p=sbcl.git diff --git a/src/compiler/target-main.lisp b/src/compiler/target-main.lisp index 2b53bd4..f9b6c70 100644 --- a/src/compiler/target-main.lisp +++ b/src/compiler/target-main.lisp @@ -27,23 +27,6 @@ (error "can't find a definition for ~S" definition-designator)) definition))) -;;; Find the function that is being compiled by COMPILE and bash its -;;; name to NAME. We also substitute for any references to name so -;;; that recursive calls will be compiled direct. LAMBDA is the -;;; top-level lambda for the compilation. A REF for the real function -;;; is the only thing in the top-level lambda other than the bind and -;;; return, so it isn't too hard to find. -(defun compile-fix-function-name (lambda name) - (declare (type clambda lambda) (type (or symbol cons) name)) - (when name - (let ((fun (ref-leaf - (continuation-next - (node-cont (lambda-bind lambda)))))) - (setf (leaf-name fun) name) - (let ((old (gethash name *free-functions*))) - (when old (substitute-leaf fun old))) - name))) - ;;; Handle the nontrivial case of CL:COMPILE. (defun actually-compile (name definition) (with-compilation-values @@ -64,7 +47,7 @@ (*lexenv* (make-null-lexenv)) (form (get-lambda-to-compile definition)) (*source-info* (make-lisp-source-info form)) - (*top-level-lambdas* ()) + (*toplevel-lambdas* ()) (*block-compile* nil) (*compiler-error-bailout* #'(lambda ()