libInit.cc
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 17 Aug 2015 08:53:26 +0100
changeset 33 feabf14b6c1d
parent 29 6ea02617c9ab
child 40 d99596797aa1
permissions -rw-r--r--
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.

/*
 * $Header$
 *
 * DO NOT EDIT
 * automagically generated from the projectDefinition: jv_llvm_s.
 */
#define __INDIRECTVMINITCALLS__
#include <stc.h>

#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
#endif

#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
DLL_EXPORT void _libjv_llvm_s_Init() INIT_TEXT_SECTION;
DLL_EXPORT void _libjv_llvm_s_InitDefinition() INIT_TEXT_SECTION;
#endif

void _libjv_llvm_s_InitDefinition(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
__BEGIN_PACKAGE2__("libjv_llvm_s__DFN", _libjv_llvm_s_InitDefinition, "jv:llvm_s");
_jv_137llvm_137s_Init(pass,__pRT__,snd);

__END_PACKAGE__();
}

void _libjv_llvm_s_Init(pass, __pRT__, snd)
OBJ snd; struct __vmData__ *__pRT__; {
__BEGIN_PACKAGE2__("libjv_llvm_s", _libjv_llvm_s_Init, "jv:llvm_s");
_LLVM_Init(pass,__pRT__,snd);
_LLVMAtomicOrdering_Init(pass,__pRT__,snd);
_LLVMAtomicRMWBinOp_Init(pass,__pRT__,snd);
_LLVMAttribute_Init(pass,__pRT__,snd);
_LLVMByteOrdering_Init(pass,__pRT__,snd);
_LLVMCEXT_Init(pass,__pRT__,snd);
_LLVMCallConv_Init(pass,__pRT__,snd);
_LLVMConfig_Init(pass,__pRT__,snd);
_LLVMConstant_Init(pass,__pRT__,snd);
_LLVMDLLStorageClass_Init(pass,__pRT__,snd);
_LLVMDWARFEncoding_Init(pass,__pRT__,snd);
_LLVMDWARFLamguage_Init(pass,__pRT__,snd);
_LLVMDiagnosticSeverity_Init(pass,__pRT__,snd);
_LLVMError_Init(pass,__pRT__,snd);
_LLVMIntPredicate_Init(pass,__pRT__,snd);
_LLVMLandingPadClauseTy_Init(pass,__pRT__,snd);
_LLVMLinkage_Init(pass,__pRT__,snd);
_LLVMModuleFlagBehavior_Init(pass,__pRT__,snd);
_LLVMObjectArray_Init(pass,__pRT__,snd);
_LLVMOpcode_Init(pass,__pRT__,snd);
_LLVMRealPredicate_Init(pass,__pRT__,snd);
_LLVMThreadLocalMode_Init(pass,__pRT__,snd);
_LLVMTypeKind_Init(pass,__pRT__,snd);
_LLVMVerifierFailureAction_Init(pass,__pRT__,snd);
_LLVMVisibility_Init(pass,__pRT__,snd);
_jv_137llvm_137s_Init(pass,__pRT__,snd);
_LLVMObject_Init(pass,__pRT__,snd);
_LLVMTypeError_Init(pass,__pRT__,snd);
_LLVMBasicBlock_Init(pass,__pRT__,snd);
_LLVMContext_Init(pass,__pRT__,snd);
_LLVMDiagnosticInfo_Init(pass,__pRT__,snd);
_LLVMDisposableObject_Init(pass,__pRT__,snd);
_LLVMMCJITCompilerOptions_Init(pass,__pRT__,snd);
_LLVMMetadata_Init(pass,__pRT__,snd);
_LLVMPassRegistry_Init(pass,__pRT__,snd);
_LLVMTargetLibraryInfo_Init(pass,__pRT__,snd);
_LLVMType_Init(pass,__pRT__,snd);
_LLVMTypeMismatchError_Init(pass,__pRT__,snd);
_LLVMUse_Init(pass,__pRT__,snd);
_LLVMValue_Init(pass,__pRT__,snd);
_LLVMDIBuilder_Init(pass,__pRT__,snd);
_LLVMExecutionEngine_Init(pass,__pRT__,snd);
_LLVMFunction_Init(pass,__pRT__,snd);
_LLVMGenericValue_Init(pass,__pRT__,snd);
_LLVMIRBuilder_Init(pass,__pRT__,snd);
_LLVMMCJITMemoryManager_Init(pass,__pRT__,snd);
_LLVMModule_Init(pass,__pRT__,snd);
_LLVMModuleProvider_Init(pass,__pRT__,snd);
_LLVMPassManager_Init(pass,__pRT__,snd);
_LLVMTargetData_Init(pass,__pRT__,snd);
_LLVMTypeFunction_Init(pass,__pRT__,snd);
_LLVMTypeLabel_Init(pass,__pRT__,snd);
_LLVMTypeMetadata_Init(pass,__pRT__,snd);
_LLVMTypeScalar_Init(pass,__pRT__,snd);
_LLVMTypeSequential_Init(pass,__pRT__,snd);
_LLVMTypeStruct_Init(pass,__pRT__,snd);
_LLVMTypeVoid_Init(pass,__pRT__,snd);
_LLVMStXMethod_Init(pass,__pRT__,snd);
_LLVMTypeArray_Init(pass,__pRT__,snd);
_LLVMTypeDouble_Init(pass,__pRT__,snd);
_LLVMTypeFP128_Init(pass,__pRT__,snd);
_LLVMTypeFloat_Init(pass,__pRT__,snd);
_LLVMTypeHalt_Init(pass,__pRT__,snd);
_LLVMTypeInteger_Init(pass,__pRT__,snd);
_LLVMTypePPC_137FP128_Init(pass,__pRT__,snd);
_LLVMTypePointer_Init(pass,__pRT__,snd);
_LLVMTypeVector_Init(pass,__pRT__,snd);
_LLVMTypeX86_137FP80_Init(pass,__pRT__,snd);
_LLVMTypeX86_137MMX_Init(pass,__pRT__,snd);

_jv_137llvm_137s_extensions_Init(pass,__pRT__,snd);
__END_PACKAGE__();
}