Change to use current LLLVM APIs (#70625)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/70625
In llvm-13 depricated APIs were removed. These APIs were just wrappers around APIs present in llvm-9+. Changed to use underlying APIs.
Test Plan: buck build mode/opt-clang-thinlto -j 70 unicorn/topaggr:top_aggregator_server -c unicorn.hfsort="1" -c cxx.extra_cxxflags="-Wforce-no-error -fbracket-depth=300" -c cxx.profile="fbcode//fdo/autofdo/unicorn/topaggr/top_aggregator_server:autofdo" -c cxx.modules=False
Reviewed By: WenleiHe
Differential Revision: D33169593
fbshipit-source-id: c8923991b351a893ef8f6c0d01858149b63c0d33