Commit cc38393
committed
Add compatibility with LLVM 22.x.
LLVM 22 removes the IntrusiveRefCntPtr<vfs::FileSystem> parameter from
the PGOOptions constructor. The VFS was moved to PassBuilder directly
(see llvm/llvm-project#160188), allowing all passes that need filesystem
access to get it from PassBuilder rather than routing it through
PGOOptions.
Add LLVM_VERSION_MAJOR version guards to retain the FS argument for
LLVM 17-21 while dropping it for LLVM 22+.1 parent 3122f9e commit cc38393
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
223 | | - | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
0 commit comments