llvm-reduce: Remove pointless template arguments
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 24 Oct 2022 17:55:29 +0000 (10:55 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 25 Oct 2022 05:32:31 +0000 (22:32 -0700)
llvm/tools/llvm-reduce/deltas/Delta.cpp

index 73a00e6..736e623 100644 (file)
@@ -150,11 +150,10 @@ static bool increaseGranularity(std::vector<Chunk> &Chunks) {
 
 // Check if \p ChunkToCheckForUninterestingness is interesting. Returns the
 // modified module if the chunk resulted in a reduction.
-template <typename FuncType>
 static std::unique_ptr<ReducerWorkItem>
 CheckChunk(Chunk &ChunkToCheckForUninterestingness,
            std::unique_ptr<ReducerWorkItem> Clone, TestRunner &Test,
-           FuncType ExtractChunksFromModule,
+           ReductionFunc ExtractChunksFromModule,
            std::set<Chunk> &UninterestingChunks,
            std::vector<Chunk> &ChunksStillConsideredInteresting) {
   // Take all of ChunksStillConsideredInteresting chunks, except those we've
@@ -206,10 +205,9 @@ CheckChunk(Chunk &ChunkToCheckForUninterestingness,
   return Clone;
 }
 
-template <typename FuncType>
-SmallString<0> ProcessChunkFromSerializedBitcode(
+static SmallString<0> ProcessChunkFromSerializedBitcode(
     Chunk &ChunkToCheckForUninterestingness, TestRunner &Test,
-    FuncType ExtractChunksFromModule, std::set<Chunk> &UninterestingChunks,
+    ReductionFunc ExtractChunksFromModule, std::set<Chunk> &UninterestingChunks,
     std::vector<Chunk> &ChunksStillConsideredInteresting,
     SmallString<0> &OriginalBC, std::atomic<bool> &AnyReduced) {
   LLVMContext Ctx;