llvm::StripDebugInfo

Strip debug info in the module if it exists.

Synopsis

Declared in <llvm/IR/DebugInfo.h>

bool
StripDebugInfo(Module& M);

Description

To do this, we remove all calls to the debugger intrinsics and any named metadata for debugging. We also remove debug locations for instructions.

Return Value

True if the module was modified.

Parameters

NameDescription
MModule whose debug info is stripped.