Cface__CIntNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 17 Sep 2015 07:36:40 +0100
changeset 49 307d55f736ec
parent 42 a428eeead6ad
permissions -rw-r--r--
LLVM bindings: allow to specify path to llvm-config ..by setting LLVM_CONFIG variable when generating definitions for LLVM bindings. Example: make LVM_CONFIG=~/Projects/LLVM/sources1/build/Debug+Asserts/bin/llvm-config

"{ Package: 'jv:cface' }"

"{ NameSpace: Cface }"

CBuiltinNode subclass:#CIntNode
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Cface-C AST'
!


!CIntNode methodsFor:'accessing'!

cByteSize
    "superclass Cface::CTypeNode says that I am responsible to implement this method"

    ^ self shouldImplement
!

cName
    "superclass Cface::CBuiltinNode says that I am responsible to implement this method"

    ^ 'int'

    "Modified: / 06-07-2015 / 07:31:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

ffiTypeSymbol
    "superclass Cface::CTypeNode says that I am responsible to implement this method"

    ^ #int

    "Modified: / 12-08-2015 / 07:40:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

smalltalkName
    "superclass Cface::CBuiltinNode says that I am responsible to implement this method"

    ^ self shouldImplement
!

stxStructFieldGetterSelector
    ^ #longAt:

    "Created: / 30-05-2012 / 21:36:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!CIntNode methodsFor:'testing'!

isCIntNode
    ^ true

    "Created: / 30-05-2012 / 21:37:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!CIntNode methodsFor:'visiting'!

acceptVisitor:aVisitor 
    "Double dispatch back to the visitor, passing my type encoded in
     the selector (visitor pattern)"

    "stub code automatically generated - please change if required"

    ^ aVisitor visitCIntNode:self
! !

!CIntNode class methodsFor:'documentation'!

version_SVN
    ^ '$Id$'
! !