Index: src/llvm2ice.cpp |
diff --git a/src/llvm2ice.cpp b/src/llvm2ice.cpp |
index ce700b7556bce165651b292aed7f6fc3625c3586..3cb13b3d9f09218bc3c15a25d618329b4790bba3 100644 |
--- a/src/llvm2ice.cpp |
+++ b/src/llvm2ice.cpp |
@@ -102,6 +102,10 @@ static cl::opt<bool> |
DisablePhiEdgeSplit("no-phi-edge-split", |
cl::desc("Disable edge splitting for Phi lowering")); |
+static cl::opt<bool> |
+DumpStats("stats", |
+ cl::desc("Print statistics after translating each function")); |
+ |
static cl::opt<NaClFileFormat> InputFileFormat( |
"bitcode-format", cl::desc("Define format of input file:"), |
cl::values(clEnumValN(LLVMFormat, "llvm", "LLVM file (default)"), |
@@ -155,6 +159,7 @@ int main(int argc, char **argv) { |
Flags.DisableGlobals = DisableGlobals; |
Flags.FunctionSections = FunctionSections; |
Flags.UseSandboxing = UseSandboxing; |
+ Flags.DumpStats = DumpStats; |
Flags.DefaultGlobalPrefix = DefaultGlobalPrefix; |
Flags.DefaultFunctionPrefix = DefaultFunctionPrefix; |