Skip to content

Commit ce27dcc

Browse files
authored
[NFC][CodeGen] Make a few MachineBlockHashInfo functions static (#192825)
1 parent 4cf7796 commit ce27dcc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

llvm/lib/CodeGen/MachineBlockHashInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
using namespace llvm;
1919

20-
uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands) {
20+
static uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands) {
2121
uint64_t Hash = 0;
2222
for (const MachineInstr &MI : MBB) {
2323
if (MI.isMetaInstruction() || MI.isTerminator())
@@ -34,7 +34,7 @@ uint64_t hashBlock(const MachineBasicBlock &MBB, bool HashOperands) {
3434
}
3535

3636
/// Fold a 64-bit integer to a 16-bit one.
37-
uint16_t fold_64_to_16(const uint64_t Value) {
37+
static uint16_t fold_64_to_16(const uint64_t Value) {
3838
uint16_t Res = static_cast<uint16_t>(Value);
3939
Res ^= static_cast<uint16_t>(Value >> 16);
4040
Res ^= static_cast<uint16_t>(Value >> 32);

0 commit comments

Comments
 (0)