[llvm-branch-commits] [MC] Use StringRefs from pseudo_probe_desc section if it's mapped (PR #112996)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Oct 18 16:13:18 PDT 2024
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 b6275868f9955e64624e67921a24b02c2d5c67fe 0e8d8a451a59eb008800d039692fc17b4f903300 --extensions cpp,h -- bolt/lib/Rewrite/PseudoProbeRewriter.cpp llvm/include/llvm/MC/MCPseudoProbe.h llvm/lib/MC/MCPseudoProbe.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Rewrite/PseudoProbeRewriter.cpp b/bolt/lib/Rewrite/PseudoProbeRewriter.cpp
index 4fecfe8c3c..09aa4fbb66 100644
--- a/bolt/lib/Rewrite/PseudoProbeRewriter.cpp
+++ b/bolt/lib/Rewrite/PseudoProbeRewriter.cpp
@@ -127,8 +127,8 @@ void PseudoProbeRewriter::parsePseudoProbe(bool ProfiledOnly) {
StringRef Contents = PseudoProbeDescSection->getContents();
if (!ProbeDecoder.buildGUID2FuncDescMap(
- reinterpret_cast<const uint8_t *>(Contents.data()),
- Contents.size(), /*IsMMapped*/true)) {
+ reinterpret_cast<const uint8_t *>(Contents.data()), Contents.size(),
+ /*IsMMapped*/ true)) {
errs() << "BOLT-WARNING: fail in building GUID2FuncDescMap\n";
return;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/112996
More information about the llvm-branch-commits
mailing list