Emit a COFF /INCLUDE: directive so the linker keeps a global.

Synopsis

Declared in <llvm/IR/Mangler.h>

void
emitLinkerFlagsForUsedCOFF(
    raw_ostream& OS,
    GlobalValue const* GV,
    Triple const& T,
    Mangler& M);

Parameters

Name

Description

OS

Stream that receives the linker flags.

GV

Global value to force the linker to include.

T

Target triple; flags are emitted only for MSVC Windows.

M

Mangler used to format the symbol name.

Created with MrDocs