From e996112fbcf2051865c7d2b7334a1aae9f05f75b Mon Sep 17 00:00:00 2001 From: David Carlier Date: Thu, 24 Feb 2022 14:50:44 +0000 Subject: Fix build for the LLVM pass for LLVM >= 13 Due to change of inheritance for more modern LLVM versions, the overridable members are not the same. --- instrumentation/compare-transform-pass.so.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'instrumentation/compare-transform-pass.so.cc') diff --git a/instrumentation/compare-transform-pass.so.cc b/instrumentation/compare-transform-pass.so.cc index be4dd513..cd3f0e6f 100644 --- a/instrumentation/compare-transform-pass.so.cc +++ b/instrumentation/compare-transform-pass.so.cc @@ -80,12 +80,14 @@ class CompareTransform : public ModulePass { } +#if LLVM_MAJOR < 11 #if LLVM_VERSION_MAJOR >= 4 StringRef getPassName() const override { #else const char *getPassName() const override { #endif +#endif #if LLVM_MAJOR >= 11 /* use new pass manager */ PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); -- cgit 1.4.1