llvm::collectDebugInfoMetadata

Collect original debug information before a pass.

Synopsis

Declared in <llvm/Transforms/Utils/Debugify.h>

bool
collectDebugInfoMetadata(
    Module& M,
    iterator_range<Module::iterator> Functions,
    DebugInfoPerPass& DebugInfoBeforePass,
    StringRef Banner,
    StringRef NameOfWrappedPass);

Return Value

True if original debug info was collected; false if the module has no debug info.

Parameters

NameDescription
MThe module to collect debug information from.
FunctionsA range of functions to collect debug information from.
DebugInfoBeforePassDI metadata before a pass.
BannerA prefix string to add to debug/error messages.
NameOfWrappedPassA name of a pass to add to debug/error messages.