[BOLT][NFC] Const-ify analyzeJumpTable
authorAmir Ayupov <aaupov@fb.com>
Wed, 22 Feb 2023 06:09:17 +0000 (22:09 -0800)
committerAmir Ayupov <aaupov@fb.com>
Mon, 27 Feb 2023 23:22:35 +0000 (15:22 -0800)
commit08ab4faf1aa338802ce7f482622dc020a2a26e08
tree809f599117f3e0820f3cb56b788f580fdb48d8ae
parent03e94f66087ea48a6321738130bdf85e714ad281
[BOLT][NFC] Const-ify analyzeJumpTable

Avoid modifying `BF`, instead set extra output parameter and modify BF in caller
scope.

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D144598
bolt/include/bolt/Core/BinaryContext.h
bolt/include/bolt/Core/JumpTable.h
bolt/lib/Core/BinaryContext.cpp