diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2023-01-16 11:00:01 -0500 |
|---|---|---|
| committer | Matt Arsenault <arsenm2@gmail.com> | 2023-01-19 21:35:26 -0400 |
| commit | 23cc36e4765912a1bcdbbc3fb8b0976a06dea043 (patch) | |
| tree | 0da90d1957a255c609a69050f8f5c999056a336c /llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp | |
| parent | 60834105d85cba27e1e1b2b4ecf4cd658019d867 (diff) | |
| download | llvm-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/ReduceGlobalValues.cpp')
| -rw-r--r-- | llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp b/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp index eb0ea4e78ba8..470d5ba97ea6 100644 --- a/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp +++ b/llvm/tools/llvm-reduce/deltas/ReduceGlobalValues.cpp @@ -37,8 +37,8 @@ static bool shouldReduceThreadLocal(GlobalValue &GV) { return GV.isThreadLocal(); } -static void reduceGVs(Oracle &O, Module &Program) { - for (auto &GV : Program.global_values()) { +static void reduceGVs(Oracle &O, ReducerWorkItem &Program) { + for (auto &GV : Program.getModule().global_values()) { if (shouldReduceDSOLocal(GV) && !O.shouldKeep()) GV.setDSOLocal(false); if (shouldReduceVisibility(GV) && !O.shouldKeep()) { |
