mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Refactor the code that erases sil functions into a new method, eraseFunction, and remember to clean the function table.
Swift SVN r11999
This commit is contained in:
@@ -156,7 +156,13 @@ public:
|
||||
const Lowering::TypeLowering &getTypeLowering(SILType t) {
|
||||
return Types.getTypeLowering(t);
|
||||
}
|
||||
|
||||
|
||||
/// Erase a function from the module.
|
||||
void eraseFunction(SILFunction *F) {
|
||||
getFunctionList().erase(F);
|
||||
FunctionTable.erase(F->getName());
|
||||
}
|
||||
|
||||
/// 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