From 2798a4258ca02ed75a949e86e40216c470c7ec72 Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Fri, 30 Jul 1993 12:09:17 +0000
Subject: [PATCH] Add translator for kernel:%compiler-only-defstruct to do the
 compile-time-only structure processing.

---
 compiler/ir1tran.lisp | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/compiler/ir1tran.lisp b/compiler/ir1tran.lisp
index ce619cf41..ba60a281a 100644
--- a/compiler/ir1tran.lisp
+++ b/compiler/ir1tran.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.91 1993/07/17 00:57:15 ram Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/ir1tran.lisp,v 1.92 1993/07/30 12:09:17 ram Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -2652,6 +2652,16 @@
     (remhash (kernel:dd-copier info) *free-functions*)
     (ir1-convert start cont `(kernel:%%compiler-defstruct ',info))))
 
+;;; %COMPILER-ONLY-DEFSTRUCT  IR1 Convert  --  Internal
+;;;
+;;;    Don't actually compile anything, instead call the function now.  Use
+;;; EVAL so this can be compiled... 
+;;; 
+(def-ir1-translator kernel:%compiler-only-defstruct
+		    ((info inherits) start cont :kind :function)
+  (eval `(kernel:%compiler-only-defstruct ,info ,inherits))
+  (reference-constant start cont nil))
+ 
 
 ;;;; Let and Let*:
 ;;;
-- 
GitLab