LLVM 22.0.0git
ModuleUtils.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "moduleutils"

Functions

static void appendToGlobalArray (StringRef ArrayName, Module &M, Function *F, int Priority, Constant *Data)
static void transformGlobalArray (StringRef ArrayName, Module &M, const GlobalCtorTransformFn &Fn)
static void collectUsedGlobals (GlobalVariable *GV, SmallSetVector< Constant *, 16 > &Init)
static void appendToUsedList (Module &M, StringRef Name, ArrayRef< GlobalValue * > Values)
static void removeFromUsedList (Module &M, StringRef Name, function_ref< bool(Constant *)> ShouldRemove)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "moduleutils"

Definition at line 28 of file ModuleUtils.cpp.

Function Documentation

◆ appendToGlobalArray()

◆ appendToUsedList()

◆ collectUsedGlobals()

void collectUsedGlobals ( GlobalVariable * GV,
SmallSetVector< Constant *, 16 > & Init )
static

◆ removeFromUsedList()

◆ transformGlobalArray()