[llvm] llvm-profgen: Options cleanup / fixes (PR #147632)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 18:10:14 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- llvm/tools/llvm-profgen/Options.h llvm/tools/llvm-profgen/CSPreInliner.h llvm/tools/llvm-profgen/ErrorHandling.h llvm/tools/llvm-profgen/MissingFrameInferrer.cpp llvm/tools/llvm-profgen/PerfReader.cpp llvm/tools/llvm-profgen/PerfReader.h llvm/tools/llvm-profgen/ProfileGenerator.cpp llvm/tools/llvm-profgen/ProfileGenerator.h llvm/tools/llvm-profgen/ProfiledBinary.cpp llvm/tools/llvm-profgen/ProfiledBinary.h llvm/tools/llvm-profgen/llvm-profgen.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.h b/llvm/tools/llvm-profgen/ProfiledBinary.h
index 0ef760367..9c0bff591 100644
--- a/llvm/tools/llvm-profgen/ProfiledBinary.h
+++ b/llvm/tools/llvm-profgen/ProfiledBinary.h
@@ -306,9 +306,9 @@ class ProfiledBinary {
void decodePseudoProbe(const object::ELFObjectFileBase *Obj);
- void
- checkUseFSDiscriminator(const object::ObjectFile *Obj,
- std::map<object::SectionRef, SectionSymbolsTy> &AllSymbols);
+ void checkUseFSDiscriminator(
+ const object::ObjectFile *Obj,
+ std::map<object::SectionRef, SectionSymbolsTy> &AllSymbols);
// Set up disassembler and related components.
void setUpDisassembler(const object::ObjectFile *Obj);
@@ -336,7 +336,8 @@ class ProfiledBinary {
/// Helper function to dissassemble the symbol and extract info for unwinding
bool dissassembleSymbol(std::size_t SI, ArrayRef<uint8_t> Bytes,
- SectionSymbolsTy &Symbols, const object::SectionRef &Section);
+ SectionSymbolsTy &Symbols,
+ const object::SectionRef &Section);
/// Symbolize a given instruction pointer and return a full call context.
SampleContextFrameVector symbolize(const InstructionPointer &IP,
bool UseCanonicalFnName = false,
``````````
</details>
https://github.com/llvm/llvm-project/pull/147632
More information about the llvm-commits
mailing list