diff options
-rw-r--r-- | src/passes/GlobalRefining.cpp | 2 | ||||
-rw-r--r-- | src/passes/GlobalTypeOptimization.cpp | 2 | ||||
-rw-r--r-- | src/passes/LimitSegments.cpp | 2 | ||||
-rw-r--r-- | src/passes/Metrics.cpp | 14 | ||||
-rw-r--r-- | src/passes/NameTypes.cpp | 2 | ||||
-rw-r--r-- | src/passes/NoExitRuntime.cpp | 2 | ||||
-rw-r--r-- | src/passes/RoundTrip.cpp | 2 | ||||
-rw-r--r-- | src/passes/Strip.cpp | 2 |
8 files changed, 9 insertions, 19 deletions
diff --git a/src/passes/GlobalRefining.cpp b/src/passes/GlobalRefining.cpp index 98848566b..e43f8ef59 100644 --- a/src/passes/GlobalRefining.cpp +++ b/src/passes/GlobalRefining.cpp @@ -26,8 +26,6 @@ #include "wasm-type.h" #include "wasm.h" -using namespace std; - namespace wasm { namespace { diff --git a/src/passes/GlobalTypeOptimization.cpp b/src/passes/GlobalTypeOptimization.cpp index 0c919ddf0..e8cee2b10 100644 --- a/src/passes/GlobalTypeOptimization.cpp +++ b/src/passes/GlobalTypeOptimization.cpp @@ -36,8 +36,6 @@ #include "wasm-type.h" #include "wasm.h" -using namespace std; - namespace wasm { namespace { diff --git a/src/passes/LimitSegments.cpp b/src/passes/LimitSegments.cpp index 0ea70f53d..0af54c582 100644 --- a/src/passes/LimitSegments.cpp +++ b/src/passes/LimitSegments.cpp @@ -18,8 +18,6 @@ #include "pass.h" #include "wasm.h" -using namespace std; - namespace wasm { struct LimitSegments : public Pass { diff --git a/src/passes/Metrics.cpp b/src/passes/Metrics.cpp index 2209bcfbb..4cd5d8ef4 100644 --- a/src/passes/Metrics.cpp +++ b/src/passes/Metrics.cpp @@ -22,11 +22,9 @@ #include <wasm-binary.h> #include <wasm.h> -using namespace std; - namespace wasm { -typedef map<const char*, int> Counts; +typedef std::map<const char*, int> Counts; static Counts lastCounts; @@ -162,8 +160,14 @@ struct Metrics } void printCounts(std::string title) { - ostream& o = cout; - vector<const char*> keys; + using std::left; + using std::noshowpos; + using std::right; + using std::setw; + using std::showpos; + + std::ostream& o = std::cout; + std::vector<const char*> keys; // add total int total = 0; for (auto i : counts) { diff --git a/src/passes/NameTypes.cpp b/src/passes/NameTypes.cpp index a2c5016bc..25b13dfb3 100644 --- a/src/passes/NameTypes.cpp +++ b/src/passes/NameTypes.cpp @@ -22,8 +22,6 @@ // Ensures each type has a name. This can be useful for debugging. // -using namespace std; - namespace wasm { // An arbitrary limit, above which we rename types. diff --git a/src/passes/NoExitRuntime.cpp b/src/passes/NoExitRuntime.cpp index 07cd4fc87..e15ef81bc 100644 --- a/src/passes/NoExitRuntime.cpp +++ b/src/passes/NoExitRuntime.cpp @@ -25,8 +25,6 @@ #include <wasm-builder.h> #include <wasm.h> -using namespace std; - namespace wasm { struct NoExitRuntime : public WalkerPass<PostWalker<NoExitRuntime>> { diff --git a/src/passes/RoundTrip.cpp b/src/passes/RoundTrip.cpp index 628cc5d4e..f2bdffefb 100644 --- a/src/passes/RoundTrip.cpp +++ b/src/passes/RoundTrip.cpp @@ -25,8 +25,6 @@ #include "wasm-binary.h" #include "wasm.h" -using namespace std; - namespace wasm { struct RoundTrip : public Pass { diff --git a/src/passes/Strip.cpp b/src/passes/Strip.cpp index ace745f87..6377d2367 100644 --- a/src/passes/Strip.cpp +++ b/src/passes/Strip.cpp @@ -25,8 +25,6 @@ #include "wasm-binary.h" #include "wasm.h" -using namespace std; - namespace wasm { struct Strip : public Pass { |