fix llvm compilation failure
authorYonghong Song <yhs@fb.com>
Mon, 6 Dec 2021 17:05:08 +0000 (09:05 -0800)
committeryonghong-song <ys114321@gmail.com>
Mon, 6 Dec 2021 18:05:00 +0000 (10:05 -0800)
commit8322ff674232c1df475a169b4f6e7b1562149c08
tree8e35c09781eae68ad2354c2d07276b6b326b07dc
parent6404277004df9b489735a2f8d4e64dfc9bc21863
fix llvm compilation failure

Fix issue #3734

llvm upstream commit
  89eb85ac6eab [IRBuilder] Remove deprecated methods
deprecated some functions which are used by bcc.
Let us follow the above commit to use the underlying
implementation instead.

Note that I didn't create a common header for the newer
functions since b language support will be removed in
the near future.

Signed-off-by: Yonghong Song <yhs@fb.com>
src/cc/bpf_module_rw_engine.cc
src/cc/frontends/b/codegen_llvm.cc
src/cc/frontends/b/codegen_llvm.h