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

Name

Description

M

The module to collect debug information from.

Functions

A range of functions to collect debug information from.

DebugInfoBeforePass

DI metadata before a pass.

Banner

A prefix string to add to debug/error messages.

NameOfWrappedPass

A name of a pass to add to debug/error messages.

Created with MrDocs