[PerfMonitor] Use Intrinsics::getDeclaration
Instead of creating the declaration ourselves, we obtain it directly from the
LLVM intrinsic definitions. This addresses a post-review comment for r299359.
Suggested-by:
Hongzing Zheng <etherzhhb@gmail.com>
llvm-svn: 299360
Loading
Please register or sign in to comment