llvm-remove: Remove "using namespace" in header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371563 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Blaikie 2019-09-10 22:10:00 +00:00
parent 5fbb26ea5f
commit da0892bd0d
4 changed files with 10 additions and 5 deletions

View 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";
}
}

View 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

View 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";
}
}

View 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) {