[PATCH] D158429: Define BBEntry::hasIndirectBranch. NFC

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 08:34:25 PDT 2023


rahmanl updated this revision to Diff 552035.
rahmanl added a comment.

Remove .gitignore from the patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D158429

Files:
  llvm/include/llvm/Object/ELFTypes.h
  llvm/tools/llvm-readobj/ELFDumper.cpp


Index: llvm/tools/llvm-readobj/ELFDumper.cpp
===================================================================
--- llvm/tools/llvm-readobj/ELFDumper.cpp
+++ llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -7471,7 +7471,7 @@
         W.printBoolean("HasTailCall", BBE.hasTailCall());
         W.printBoolean("IsEHPad", BBE.isEHPad());
         W.printBoolean("CanFallThrough", BBE.canFallThrough());
-        W.printBoolean("HasIndirectBranch", BBE.MD.HasIndirectBranch);
+        W.printBoolean("HasIndirectBranch", BBE.hasIndirectBranch());
       }
     }
   }
Index: llvm/include/llvm/Object/ELFTypes.h
===================================================================
--- llvm/include/llvm/Object/ELFTypes.h
+++ llvm/include/llvm/Object/ELFTypes.h
@@ -856,6 +856,7 @@
     bool hasTailCall() const { return MD.HasTailCall; }
     bool isEHPad() const { return MD.IsEHPad; }
     bool canFallThrough() const { return MD.CanFallThrough; }
+    bool hasIndirectBranch() const { return MD.HasIndirectBranch; }
   };
   std::vector<BBEntry> BBEntries; // Basic block entries for this function.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158429.552035.patch
Type: text/x-patch
Size: 1092 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230821/71bf9ad6/attachment.bin>


More information about the llvm-commits mailing list