Index: tools/tickprocessor-driver.js |
diff --git a/tools/tickprocessor-driver.js b/tools/tickprocessor-driver.js |
index f7cfd13f09182afce00124b44f3b1580240b39db..dc6779607a064165af311d050af6fbdca7b0e872 100644 |
--- a/tools/tickprocessor-driver.js |
+++ b/tools/tickprocessor-driver.js |
@@ -37,11 +37,15 @@ function processArguments(args) { |
} |
} |
+var entriesProviders = { |
+ 'unix': UnixCppEntriesProvider, |
+ 'windows': WindowsCppEntriesProvider, |
+ 'mac': MacCppEntriesProvider |
+}; |
var params = processArguments(arguments); |
var tickProcessor = new TickProcessor( |
- params.platform == 'unix' ? new UnixCppEntriesProvider(params.nm) : |
- new WindowsCppEntriesProvider(), |
+ new (entriesProviders[params.platform])(params.nm), |
params.separateIc, |
params.ignoreUnknown, |
params.stateFilter); |