Fix a llvm compilation error
authorYonghong Song <yhs@fb.com>
Sun, 27 Nov 2022 01:41:33 +0000 (17:41 -0800)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 22 Feb 2024 14:17:55 +0000 (15:17 +0100)
commit9f91126ce7747f7a9f9755a98868a0d34c9d75f9
tree194c5616523b17691f44f66f90f929515fc47e17
parenta791fd102d851557476ceff6a0373ce9ffadae91
Fix a llvm compilation error

With latest llvm16, I got the following compilation error:
  /.../src/cc/bpf_module.cc: In member function ‘void ebpf::BPFModule::dump_ir(llvm::Module&)’:
  /.../src/cc/bpf_module.cc:259:15: error: ‘PrintModulePass’ was not declared in this scope
     MPM.addPass(PrintModulePass(errs()));
                 ^~~~~~~~~~~~~~~
  ...

The error is due to the llvm patch https://reviews.llvm.org/D138081.
Fix the issue by adjust corresponding header file locaiton
as in the above llvm patch.

Signed-off-by: Yonghong Song <yhs@fb.com>
src/cc/bpf_module.cc