[all-commits] [llvm/llvm-project] 7c206c: [BOLT] Refactor interface for instruction labels. ...
Maksim Panchenko via All-commits
all-commits at lists.llvm.org
Tue Feb 27 18:44:39 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7c206c7812408f152baffa3c73f765b7d9ffdf18
https://github.com/llvm/llvm-project/commit/7c206c7812408f152baffa3c73f765b7d9ffdf18
Author: Maksim Panchenko <maks at fb.com>
Date: 2024-02-27 (Tue, 27 Feb 2024)
Changed paths:
M bolt/include/bolt/Core/MCPlusBuilder.h
M bolt/lib/Core/BinaryContext.cpp
M bolt/lib/Core/BinaryEmitter.cpp
M bolt/lib/Core/BinaryFunction.cpp
M bolt/lib/Core/Exceptions.cpp
M bolt/lib/Core/MCPlusBuilder.cpp
M bolt/lib/Rewrite/LinuxKernelRewriter.cpp
Log Message:
-----------
[BOLT] Refactor interface for instruction labels. NFCI (#83209)
To avoid accidentally setting the label twice for the same instruction,
which can lead to a "lost" label, introduce getOrSetInstLabel()
function. Rename existing functions to getInstLabel()/setInstLabel() to
make it explicit that they operate on instruction labels. Add an
assertion in setInstLabel() that the instruction did not have a prior
label set.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list