Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e840d2

Browse files
authored
[BOLT] Remove unnecessary dependency. NFC (#174645)
There's no need for a full definition of `BinaryBasicBlock` in `MCPlusBuilder.h`. Use `InstructionListType::iterator` instead of `BinaryBasicBlock::iterator` in `findMemcpySizeInBytes()`.
1 parent a19b464 commit 3e840d2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

bolt/include/bolt/Core/MCPlusBuilder.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#ifndef BOLT_CORE_MCPLUSBUILDER_H
1515
#define BOLT_CORE_MCPLUSBUILDER_H
1616

17-
#include "bolt/Core/BinaryBasicBlock.h"
1817
#include "bolt/Core/MCPlus.h"
1918
#include "bolt/Core/Relocation.h"
2019
#include "llvm/ADT/ArrayRef.h"
@@ -2042,7 +2041,7 @@ class MCPlusBuilder {
20422041
/// targets).
20432042
virtual std::optional<uint64_t>
20442043
findMemcpySizeInBytes(const BinaryBasicBlock &BB,
2045-
BinaryBasicBlock::iterator CallInst) const {
2044+
InstructionListType::iterator CallInst) const {
20462045
return std::nullopt;
20472046
}
20482047

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2971,7 +2971,7 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
29712971

29722972
std::optional<uint64_t>
29732973
findMemcpySizeInBytes(const BinaryBasicBlock &BB,
2974-
BinaryBasicBlock::iterator CallInst) const override {
2974+
InstructionListType::iterator CallInst) const override {
29752975
MCPhysReg SizeReg = getIntArgRegister(2);
29762976
if (SizeReg == getNoRegister())
29772977
return std::nullopt;

0 commit comments

Comments
 (0)