Skip to content

Commit 108bc08

Browse files
committed
format
1 parent 8927a27 commit 108bc08

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

llvm/tools/llvm-profgen/ProfileGenerator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,8 @@ void ProfileGenerator::populateBodySamplesForAllFunctions(
723723
}
724724

725725
StringRef
726-
ProfileGeneratorBase::getCalleeNameForAddress(uint64_t TargetAddress, bool RestoreSymbolName) {
726+
ProfileGeneratorBase::getCalleeNameForAddress(uint64_t TargetAddress,
727+
bool RestoreSymbolName) {
727728
// Get the function range by branch target if it's a call branch.
728729
auto *FRange = Binary->findFuncRangeForStartAddr(TargetAddress);
729730

@@ -733,8 +734,7 @@ ProfileGeneratorBase::getCalleeNameForAddress(uint64_t TargetAddress, bool Resto
733734
return StringRef();
734735

735736
if (RestoreSymbolName && FRange->Func->FromSymtab) {
736-
const AddressProbesMap &Address2ProbesMap =
737-
Binary->getAddress2ProbesMap();
737+
const AddressProbesMap &Address2ProbesMap = Binary->getAddress2ProbesMap();
738738
for (const MCDecodedPseudoProbe &Probe :
739739
Address2ProbesMap.find(TargetAddress)) {
740740
if (const auto *ProbeDesc = Binary->getFuncDescForGUID(Probe.getGuid()))

llvm/tools/llvm-profgen/ProfileGenerator.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ class ProfileGeneratorBase {
109109

110110
bool filterAmbiguousProfile(FunctionSamples &FS);
111111

112-
StringRef getCalleeNameForAddress(uint64_t TargetAddress, bool RestoreSymbolName = false);
112+
StringRef getCalleeNameForAddress(uint64_t TargetAddress,
113+
bool RestoreSymbolName = false);
113114

114115
void computeSummaryAndThreshold(SampleProfileMap &ProfileMap);
115116

0 commit comments

Comments
 (0)