mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a function to remove a global variable from a SILModule.
This API is useful for some global optimizations. If we can prove that a global is not used in the application, we can remove it. Swift SVN r31529
This commit is contained in:
@@ -210,6 +210,9 @@ public:
|
||||
/// Erase a function from the module.
|
||||
void eraseFunction(SILFunction *F);
|
||||
|
||||
/// Erase a global SIL variable from the module.
|
||||
void eraseGlobalVariable(SILGlobalVariable *G);
|
||||
|
||||
/// Construct a SIL module from an AST module.
|
||||
///
|
||||
/// The module will be constructed in the Raw stage. The provided AST module
|
||||
|
||||
Reference in New Issue
Block a user