From 11ed12f99f0451ca6ce4daf3c4134a2c9b0b30f4 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 24 Oct 2022 10:55:29 -0700 Subject: [PATCH] llvm-reduce: Remove pointless template arguments --- llvm/tools/llvm-reduce/deltas/Delta.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/llvm/tools/llvm-reduce/deltas/Delta.cpp b/llvm/tools/llvm-reduce/deltas/Delta.cpp index 73a00e6..736e623 100644 --- a/llvm/tools/llvm-reduce/deltas/Delta.cpp +++ b/llvm/tools/llvm-reduce/deltas/Delta.cpp @@ -150,11 +150,10 @@ static bool increaseGranularity(std::vector &Chunks) { // Check if \p ChunkToCheckForUninterestingness is interesting. Returns the // modified module if the chunk resulted in a reduction. -template static std::unique_ptr CheckChunk(Chunk &ChunkToCheckForUninterestingness, std::unique_ptr Clone, TestRunner &Test, - FuncType ExtractChunksFromModule, + ReductionFunc ExtractChunksFromModule, std::set &UninterestingChunks, std::vector &ChunksStillConsideredInteresting) { // Take all of ChunksStillConsideredInteresting chunks, except those we've @@ -206,10 +205,9 @@ CheckChunk(Chunk &ChunkToCheckForUninterestingness, return Clone; } -template -SmallString<0> ProcessChunkFromSerializedBitcode( +static SmallString<0> ProcessChunkFromSerializedBitcode( Chunk &ChunkToCheckForUninterestingness, TestRunner &Test, - FuncType ExtractChunksFromModule, std::set &UninterestingChunks, + ReductionFunc ExtractChunksFromModule, std::set &UninterestingChunks, std::vector &ChunksStillConsideredInteresting, SmallString<0> &OriginalBC, std::atomic &AnyReduced) { LLVMContext Ctx; -- 2.7.4