[memprof] Use InstrProfWriter::addMemProfData in a unit test (NFC) (#116921)
commit4b3b74dffa0aa76169cb67c3cb7ccf152c2c03aa
authorKazu Hirata <kazu@google.com>
Wed, 20 Nov 2024 16:36:55 +0000 (20 08:36 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 16:36:55 +0000 (20 08:36 -0800)
tree27b7568ece533babbb9bfba6ef7068a6afa510bc
parent4acba0697e7d8068927753f3bdabad478df91dc4
[memprof] Use InstrProfWriter::addMemProfData in a unit test (NFC) (#116921)

This patch uses InstrProfWriter::addMemProfData to add the complete
MemProf profile to the writer context.
llvm/unittests/Transforms/Instrumentation/MemProfUseTest.cpp