[gardening][SIL] Replace typedef with using

This commit is contained in:
Sho Ikeda
2018-04-05 13:53:20 +09:00
parent 10dc220df6
commit 03fbd4a6de
18 changed files with 40 additions and 39 deletions

View File

@@ -217,7 +217,7 @@ private:
// Callbacks registered by the SIL optimizer to run on each deserialized
// function body. This is intentionally a stateless type because the
// ModuleDecl and SILFunction should be sufficient context.
typedef void (*SILFunctionBodyCallback)(ModuleDecl *, SILFunction *F);
using SILFunctionBodyCallback = void (*)(ModuleDecl *, SILFunction *F);
SmallVector<SILFunctionBodyCallback, 0> DeserializationCallbacks;
/// The SILLoader used when linking functions into this module.