forked from OSchip/llvm-project
Added Tool as Dependency to tests & fixed warnings
Summary: Fixes http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-bootstrap-msan/builds/14002 and http://lab.llvm.org:8011/builders/lld-x86_64-darwin13/builds/35392/steps/build_Lld/logs/stdio Subscribers: mgorny, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65843 llvm-svn: 368117
This commit is contained in:
parent
171dd2e6e5
commit
5dbfca8541
|
@ -89,6 +89,7 @@ set(LLVM_TEST_DEPENDS
|
|||
llvm-rc
|
||||
llvm-readobj
|
||||
llvm-readelf
|
||||
llvm-reduce
|
||||
llvm-rtdyld
|
||||
llvm-size
|
||||
llvm-split
|
||||
|
|
|
@ -85,7 +85,7 @@ static bool increaseGranularity(std::vector<Chunk> &Chunks) {
|
|||
if (C.end - C.begin == 0)
|
||||
NewChunks.push_back(C);
|
||||
else {
|
||||
int Half = (C.begin + C.end) / 2;
|
||||
unsigned Half = (C.begin + C.end) / 2;
|
||||
NewChunks.push_back({C.begin, Half});
|
||||
NewChunks.push_back({Half + 1, C.end});
|
||||
SplitOne = true;
|
||||
|
@ -100,7 +100,7 @@ static bool increaseGranularity(std::vector<Chunk> &Chunks) {
|
|||
}
|
||||
|
||||
void llvm::runDeltaPass(
|
||||
TestRunner &Test, int Targets,
|
||||
TestRunner &Test, unsigned Targets,
|
||||
std::function<std::unique_ptr<Module>(std::vector<Chunk>, Module *)>
|
||||
ExtractChunksFromModule) {
|
||||
if (!Targets)
|
||||
|
|
|
@ -28,8 +28,8 @@
|
|||
using namespace llvm;
|
||||
|
||||
struct Chunk {
|
||||
int begin;
|
||||
int end;
|
||||
unsigned begin;
|
||||
unsigned end;
|
||||
|
||||
/// Operator when populating CurrentChunks in Generic Delta Pass
|
||||
friend bool operator!=(const Chunk &C1, const Chunk &C2) {
|
||||
|
@ -66,7 +66,7 @@ namespace llvm {
|
|||
/// Other implementations of the Delta Debugging algorithm can also be found in
|
||||
/// the CReduce, Delta, and Lithium projects.
|
||||
void runDeltaPass(
|
||||
TestRunner &Test, int Targets,
|
||||
TestRunner &Test, unsigned Targets,
|
||||
std::function<std::unique_ptr<Module>(std::vector<Chunk>, Module *)>
|
||||
ExtractChunksFromModule);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ extractFunctionsFromModule(std::vector<Chunk> ChunksToKeep, Module *Program) {
|
|||
|
||||
// Get functions inside desired chunks
|
||||
std::set<Function *> FuncsToKeep;
|
||||
int I = 0, FunctionCount = 1;
|
||||
unsigned I = 0, FunctionCount = 1;
|
||||
for (auto &F : *Clone) {
|
||||
if (!F.isDeclaration() && I < ChunksToKeep.size()) {
|
||||
if (FunctionCount >= ChunksToKeep[I].begin &&
|
||||
|
|
|
@ -21,7 +21,7 @@ extractGVsFromModule(std::vector<Chunk> ChunksToKeep, Module *Program) {
|
|||
|
||||
// Get GVs inside desired chunks
|
||||
std::set<GlobalVariable *> GVsToKeep;
|
||||
int I = 0, GVCount = 1;
|
||||
unsigned I = 0, GVCount = 1;
|
||||
for (auto &GV : Clone->globals()) {
|
||||
if (GV.hasInitializer() && I < ChunksToKeep.size()) {
|
||||
if (GVCount >= ChunksToKeep[I].begin && GVCount <= ChunksToKeep[I].end)
|
||||
|
|
Loading…
Reference in New Issue