stripDebugInfo: Remove the debugging meta-data from a Module or Function

stripDebugInfoR Documentation

Remove the debugging meta-data from a Module or Function

Description

This removes the debugging meta-data from an LLVM Module or just for a single Function.

Usage

stripDebugInfo(x, ...)

Arguments

x

the Module or Function object

...

additional arguments for methods

Value

The returned value is typically of no interest as it is the side effect of modifying the Module or Function that is important.

Author(s)

DTL

See Also

parseIR and llvm-strip

Examples

  irFile = system.file("IR/fib_debug.ir", package = "Rllvm")
  m = parseIR(irFile)
  showModule(m)
  stripDebugInfo(m$fib)
  showModule(m)
  stripDebugInfo(m)
  showModule(m)

duncantl/Rllvm documentation built on May 13, 2024, 7:45 p.m.