[llvm] [XCOFF] Use RLDs to print branches even without -r (PR #74342)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 18 07:58:43 PST 2023
================
@@ -1292,6 +1294,8 @@ collectLocalBranchTargets(ArrayRef<uint8_t> Bytes, MCInstrAnalysis *MIA,
// So far only supports PowerPC and X86.
if (!STI->getTargetTriple().isPPC() && !STI->getTargetTriple().isX86())
return;
+ const bool isXCOFF = STI->getTargetTriple().isOSBinFormatXCOFF();
+ const bool isPPC = STI->getTargetTriple().isPPC();
----------------
diggerlin wrote:
suggest moving these two line to before line 1328 (closest to the variable be used)
https://github.com/llvm/llvm-project/pull/74342
More information about the llvm-commits
mailing list