Rollup merge of #150394 - DKLoehr:passplugin, r=nikic

Accommodate LLVM PassPlugin rename

LLVM [recently moved](https://github.com/llvm/llvm-project/pull/173279) their `PassPlugin` files to a new folder. This PR updates our `PassWrapper` to point to the new location.
This commit is contained in:
Jonathan Brouwer 2025-12-29 17:17:56 +01:00 committed by GitHub
commit 122f02ad02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,7 +23,11 @@
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Object/ObjectFile.h"
#include "llvm/Passes/PassBuilder.h"
#if LLVM_VERSION_GE(22, 0)
#include "llvm/Plugins/PassPlugin.h"
#else
#include "llvm/Passes/PassPlugin.h"
#endif
#include "llvm/Passes/StandardInstrumentations.h"
#include "llvm/Support/CBindingWrapping.h"
#include "llvm/Support/FileSystem.h"