[llvm] r371563 - llvm-remove: Remove "using namespace" in header.
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 15:10:00 PDT 2019
Author: dblaikie
Date: Tue Sep 10 15:10:00 2019
New Revision: 371563
URL: http://llvm.org/viewvc/llvm-project?rev=371563&view=rev
Log:
llvm-remove: Remove "using namespace" in header.
Modified:
llvm/trunk/tools/llvm-reduce/deltas/Delta.cpp
llvm/trunk/tools/llvm-reduce/deltas/Delta.h
llvm/trunk/tools/llvm-reduce/deltas/ReduceFunctions.cpp
llvm/trunk/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
Modified: llvm/trunk/tools/llvm-reduce/deltas/Delta.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-reduce/deltas/Delta.cpp?rev=371563&r1=371562&r2=371563&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-reduce/deltas/Delta.cpp (original)
+++ llvm/trunk/tools/llvm-reduce/deltas/Delta.cpp Tue Sep 10 15:10:00 2019
@@ -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
+}
Modified: llvm/trunk/tools/llvm-reduce/deltas/Delta.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-reduce/deltas/Delta.h?rev=371563&r1=371562&r2=371563&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-reduce/deltas/Delta.h (original)
+++ llvm/trunk/tools/llvm-reduce/deltas/Delta.h Tue Sep 10 15:10:00 2019
@@ -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
Modified: llvm/trunk/tools/llvm-reduce/deltas/ReduceFunctions.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-reduce/deltas/ReduceFunctions.cpp?rev=371563&r1=371562&r2=371563&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-reduce/deltas/ReduceFunctions.cpp (original)
+++ llvm/trunk/tools/llvm-reduce/deltas/ReduceFunctions.cpp Tue Sep 10 15:10:00 2019
@@ -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(Test
unsigned Functions = countFunctions(Test.getProgram());
runDeltaPass(Test, Functions, extractFunctionsFromModule);
errs() << "----------------------------\n";
-}
\ No newline at end of file
+}
Modified: llvm/trunk/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp?rev=371563&r1=371562&r2=371563&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp (original)
+++ llvm/trunk/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp Tue Sep 10 15:10:00 2019
@@ -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) {
More information about the llvm-commits
mailing list