lapplyDebugInfo | R Documentation |
lapplyDebugInfo(mod, fun, setClass = TRUE, ...)
lapplyDebugInfoTypes(mod, fun, setClass = TRUE, ...)
getElements(x, ...)
mod |
the |
fun |
a function that is applied to each top-level metadata node or metadata type in the module. |
setClass |
a logical value that controls whether to get the specific class of the DINode/DIType object, or to leave it as a generic DINode/DIType class. |
... |
additional arguments. Currently ignored. Instead of passing values by this mechanism, create an anonymous function that includes these arguments in the call to the actual function |
x |
the debug type object, i.e. one of the sub-classes of
|
A list
lapplyDebugInfo
doesn't return the nodes as they currently are on
the stack and so will disappear if we take a reference to them.
DTL
getElements
f = system.file("IR/fib_debug.ir", package = "Rllvm")
m = parseIR(f)
lapplyDebugInfo(m, class)
lapplyDebugInfoTypes(m, class)
lapplyDebugInfoTypes(m, getElements)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.