Add pass ExternalDefsToDecls that changes all available_external functions into declarations.

This is useful to ascertain how much code size comes from available_external functions.

Swift SVN r24471
This commit is contained in:
Michael Gottesman
2015-01-16 03:17:53 +00:00
parent 4dfa4edbd4
commit 3d28921607
7 changed files with 63 additions and 1 deletions

View File

@@ -226,6 +226,9 @@ Passes(llvm::cl::desc("Passes:"),
clEnumValN(PassKind::SplitAllCriticalEdges,
"split-critical-edges",
"Split all critical edges"),
clEnumValN(PassKind::ExternalDefsToDecls,
"external-defs-to-decls",
"Convert external definitions to decls"),
clEnumValEnd));
static llvm::cl::opt<bool>