summaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2023-01-16 11:00:01 -0500
committerMatt Arsenault <arsenm2@gmail.com>2023-01-19 21:35:26 -0400
commit23cc36e4765912a1bcdbbc3fb8b0976a06dea043 (patch)
tree0da90d1957a255c609a69050f8f5c999056a336c /llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
parent60834105d85cba27e1e1b2b4ecf4cd658019d867 (diff)
downloadllvm-23cc36e4765912a1bcdbbc3fb8b0976a06dea043.tar.gz
llvm-reduce: Use consistent ReductionFunc types
Some of these were relying on ReducerWorkItem's operator Module&.
Diffstat (limited to 'llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp')
-rw-r--r--llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp b/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
index efb02332bee9..a65e55d5f6f4 100644
--- a/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
+++ b/llvm/tools/llvm-reduce/deltas/StripDebugInfo.cpp
@@ -15,7 +15,8 @@ using namespace llvm;
/// Removes all aliases aren't inside any of the
/// desired Chunks.
-static void stripDebugInfoImpl(Oracle &O, Module &Program) {
+static void stripDebugInfoImpl(Oracle &O, ReducerWorkItem &WorkItem) {
+ Module &Program = WorkItem.getModule();
bool HasDebugInfo = any_of(Program.named_metadata(), [](NamedMDNode &NMD) {
return NMD.getName().startswith("llvm.dbg.");
});