mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-15 00:16:42 +00:00
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:
parent
5fbb26ea5f
commit
da0892bd0d
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user