[llvm] [BOLT] Expose pseudo probe function checksum (PR #99389)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 22:22:04 PDT 2024
================
@@ -377,6 +381,17 @@ class BinaryContext {
RtLibrary = std::move(Lib);
}
+ const MCPseudoProbeDecoder *getPseudoProbeDecoder() const {
+ return PseudoProbeDecoder.get();
+ }
+
+ MCPseudoProbeDecoder &
+ setPseudoProbeDecoder(std::unique_ptr<MCPseudoProbeDecoder> Decoder) {
----------------
WenleiHe wrote:
nit: it's a bit unconventional to have setter return a reference. Nearby code all have a setter with void return and a dedicated setter. Suggest to be consistent.
https://github.com/llvm/llvm-project/pull/99389
More information about the llvm-commits
mailing list