DeclarationHandler

This handler is in charge of parsing all LLVM IR language constructs that are related to declarations, mainly functions and types.

Constructors

Link copied to clipboard
constructor(lang: LLVMIRLanguageFrontend)

Properties

Link copied to clipboard
open override val ctx: TranslationContext?
Link copied to clipboard
Link copied to clipboard
open override val language: Language<*>?
Link copied to clipboard
Link copied to clipboard
open override val namespace: Name?
Link copied to clipboard
open override val scope: Scope?

Functions

Link copied to clipboard
open override fun codeOf(astNode: Pointer): String?
Link copied to clipboard
open fun handle(ctx: Pointer): Declaration?
Link copied to clipboard
fun handleStructureType(typeRef: LLVMTypeRef, alreadyVisited: MutableMap<LLVMTypeRef, Type?> = mutableMapOf()): RecordDeclaration

Handles the parsing of structure types. Member fields of structs in LLVM IR do not have names, so we need to assign dummy names for easier reading, such s field_0.

Link copied to clipboard
open override fun locationOf(astNode: Pointer): PhysicalLocation?