Method AddInternalizePass
AddInternalizePass<T>(T, Boolean)
Adds an Internalize Global Symbols pass
Declaration
public static T AddInternalizePass<T>([ValidatedNotNull] this T passManager, bool allButMain)
where T : PassManager
Parameters
public static T AddInternalizePass<T>([ValidatedNotNull] this T passManager, bool allButMain)
where T : PassManager
T | passManager | Pass manager to add the pass to |
Boolean | allButMain | Flag to indicate if all globals except "main" are considered candidates for internalizing |
Returns
T |
|
Type Parameters
T | PassManager type |
Remarks
This pass loops over all of the functions in the input module, looking for a main function. If a main function is found, all other functions and all global variables with initializers are marked as internal.