[llvm] [BOLT] Enable hugify for AArch64 (PR #117158)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 21 05:54:49 PST 2024


================
@@ -5722,17 +5726,22 @@ void RewriteInstance::rewriteFile() {
 
   // Write all allocatable sections - reloc-mode text is written here as well
   for (BinarySection &Section : BC->allocatableSections()) {
-    if (!Section.isFinalized() || !Section.getOutputData())
+    if (!Section.isFinalized() || !Section.getOutputData()) {
+      BC->outs() << "BOLT: new section is finalized or !getOutputData, skip " << Section.getName() << '\n';
----------------
aaupov wrote:

This looks like a debug statement, consider wrapping into LLVM_DEBUG() macro.

https://github.com/llvm/llvm-project/pull/117158


More information about the llvm-commits mailing list