[PATCH] D146169: Non-debuginfo JITLink perf jitdump support

Prem Chintalapudi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 20:10:09 PDT 2023


pchintalapudi updated this revision to Diff 506830.
pchintalapudi added a comment.

Fix bugs in unwind record creation


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146169/new/

https://reviews.llvm.org/D146169

Files:
  llvm/lib/ExecutionEngine/Orc/PerfSupportPlugin.cpp


Index: llvm/lib/ExecutionEngine/Orc/PerfSupportPlugin.cpp
===================================================================
--- llvm/lib/ExecutionEngine/Orc/PerfSupportPlugin.cpp
+++ llvm/lib/ExecutionEngine/Orc/PerfSupportPlugin.cpp
@@ -52,9 +52,9 @@
   // binary search table goes here
 
   size_t HeaderSize = (sizeof(Version) + sizeof(EhFramePtrEnc) +
-                               sizeof(FDECountEnc) + sizeof(TableEnc) + absolute
+                               sizeof(FDECountEnc) + sizeof(TableEnc) + (absolute
                            ? sizeof(uint64_t)
-                           : sizeof(EHFrameRelocation));
+                           : sizeof(EHFrameRelocation)));
   std::string HeaderContent(HeaderSize, '\0');
   BinaryStreamWriter Writer(
       MutableArrayRef<uint8_t>(
@@ -69,8 +69,7 @@
   if (auto Err = Writer.writeInteger(TableEnc))
     return std::move(Err);
   if (absolute) {
-    uint64_t EHFrameAddr = support::endian::byte_swap(
-        SectionRange(EHFrame).getStart().getValue(), endianness);
+    uint64_t EHFrameAddr = SectionRange(EHFrame).getStart().getValue();
     if (auto Err = Writer.writeInteger(EHFrameAddr))
       return std::move(Err);
   } else {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146169.506830.patch
Type: text/x-patch
Size: 1204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/3a70f905/attachment.bin>


More information about the llvm-commits mailing list