]> granicus.if.org Git - llvm/commitdiff
llvm-remove: Remove "using namespace" in header.
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 10 Sep 2019 22:10:00 +0000 (22:10 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 10 Sep 2019 22:10:00 +0000 (22:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371563 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-reduce/deltas/Delta.cpp
tools/llvm-reduce/deltas/Delta.h
tools/llvm-reduce/deltas/ReduceFunctions.cpp
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp

index 68a9272b88da4eac75b906313c50e6df9b55f403..c6c39d979f6b668314293d1fadf37f3f4d705ad0 100644 (file)
@@ -15,6 +15,8 @@
 #include "Delta.h"
 #include "llvm/ADT/STLExtras.h"
 
+using namespace llvm;
+
 /// Writes IR code to the given Filepath
 static bool writeProgramToFile(StringRef Filepath, int FD, const Module &M) {
   ToolOutputFile Out(Filepath, FD);
@@ -165,4 +167,4 @@ void llvm::runDeltaPass(
   if (ReducedProgram)
     Test.setProgram(std::move(ReducedProgram));
   errs() << "Couldn't increase anymore.\n";
-}
\ No newline at end of file
+}
index d4217872333cc1b6696e9cc73721ea1f14f4c1c6..54e5258e0bf0dcdb71188b5ccd4239bcd0e5c7b1 100644 (file)
@@ -26,7 +26,7 @@
 #include <set>
 #include <vector>
 
-using namespace llvm;
+namespace llvm {
 
 struct Chunk {
   unsigned begin;
@@ -53,8 +53,6 @@ struct Chunk {
   }
 };
 
-namespace llvm {
-
 /// This function implements the Delta Debugging algorithm, it receives a
 /// number of Targets (e.g. Functions, Instructions, Basic Blocks, etc.) and
 /// splits them in half; these chunks of targets are then tested while ignoring
index 90937d5476cac2fd8fe3aee29dc84f5ebf21ca90..bfd5106fd876ca92934e9ee9a0f4dcebcbb88d1f 100644 (file)
@@ -13,6 +13,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "ReduceFunctions.h"
+#include "Delta.h"
+
+using namespace llvm;
 
 /// Removes all the Defined Functions (as well as their calls)
 /// that aren't inside any of the desired Chunks.
@@ -69,4 +72,4 @@ void llvm::reduceFunctionsDeltaPass(TestRunner &Test) {
   unsigned Functions = countFunctions(Test.getProgram());
   runDeltaPass(Test, Functions, extractFunctionsFromModule);
   errs() << "----------------------------\n";
-}
\ No newline at end of file
+}
index efe30c4ac3c3feca6c79496a33f809eb4a057078..fd7cbf2817c37dbac1195432db7a376585e82e93 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "ReduceGlobalVars.h"
 
+using namespace llvm;
+
 /// Removes all the Initialized GVs that aren't inside the desired Chunks.
 static void extractGVsFromModule(std::vector<Chunk> ChunksToKeep,
                                  Module *Program) {