Initial support for generating (DWARF) debug info.
The current API is really horrible and clumsy, but it's more or less
1-to-1 mapping to LLVM API. LLVMExamples>>example7_factorial_with_debug_info
shows how to use it. The debug info API (at the Smalltalk level) will be
refactored to provide easier-to-use interface.
"
Copyright (C) 2015-now Jan Vrany
This code is not an open-source (yet). You may use this code
for your own experiments and projects, given that:
* all modification to the code will be sent to the
original author for inclusion in future releases
* this is not used in any commercial software
This license is provisional and may (will) change in
a future.
"
"{ Package: 'jv:llvm_s' }"
"{ NameSpace: Smalltalk }"
LLVMTypeScalar subclass:#LLVMTypeDouble
instanceVariableNames:''
classVariableNames:''
poolDictionaries:''
category:'LLVM-S-Core-Types'
!
!LLVMTypeDouble class methodsFor:'documentation'!
copyright
"
Copyright (C) 2015-now Jan Vrany
This code is not an open-source (yet). You may use this code
for your own experiments and projects, given that:
* all modification to the code will be sent to the
original author for inclusion in future releases
* this is not used in any commercial software
This license is provisional and may (will) change in
a future.
"
! !
!LLVMTypeDouble methodsFor:'accessing'!
sizeInBits
"For integer, pointer, FP types, return the size in bits. For all
other types, throw an LLVMTypeError.
LLVMType int32 sizeInBits -> 32
LLVMType int1 sizeInBits -> 1
"
^ 64
"Created: / 13-08-2015 / 17:02:19 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !
!LLVMTypeDouble methodsFor:'testing'!
isDoubleType
^ true
"Created: / 13-08-2015 / 16:50:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !