Skip to content

Commit 1ef1d27

Browse files
author
Alexander Yermolovich
committed
clang-format
1 parent bbf015f commit 1ef1d27

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

bolt/include/bolt/Passes/IdenticalCodeFolding.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ class IdenticalCodeFolding : public BinaryFunctionPass {
5252
return VtableBitVector.test(Address / 8);
5353
}
5454
/// Initialize bit vector of memory addresses of vtables.
55-
void initVtable() {VtableBitVector.resize((((uint64_t)1) << 32) / 8);}
55+
void initVtable() { VtableBitVector.resize((((uint64_t)1) << 32) / 8); }
5656
/// Mark memory address of vtable as used.
57-
void setAddressUsedInVTable(uint64_t Address) { VtableBitVector.set(Address / 8); }
57+
void setAddressUsedInVTable(uint64_t Address) {
58+
VtableBitVector.set(Address / 8);
59+
}
5860
/// Scans symbol table and creates a bit vector of memory addresses of
5961
/// vtables.
6062
void initVTableReferences(const BinaryContext &BC);

bolt/lib/Passes/IdenticalCodeFolding.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#include "bolt/Core/HashUtilities.h"
1515
#include "bolt/Core/ParallelUtilities.h"
1616
#include "llvm/ADT/BitVector.h"
17-
#include "llvm/ADT/DenseSet.h"
1817
#include "llvm/ADT/DenseMap.h"
18+
#include "llvm/ADT/DenseSet.h"
1919
#include "llvm/ADT/SmallVector.h"
2020
#include "llvm/Support/CommandLine.h"
2121
#include "llvm/Support/ThreadPool.h"
@@ -356,7 +356,8 @@ typedef std::unordered_map<BinaryFunction *, std::vector<BinaryFunction *>,
356356

357357
namespace llvm {
358358
namespace bolt {
359-
/// Scans symbol table and creates a bit vector of memory addresses of vtable symbols.
359+
/// Scans symbol table and creates a bit vector of memory addresses of vtable
360+
/// symbols.
360361
void IdenticalCodeFolding::initVTableReferences(const BinaryContext &BC) {
361362
initVtable();
362363
for (const auto &[Address, Data] : BC.getBinaryData()) {

0 commit comments

Comments
 (0)