[llvm] [BOLT][NFC] Add keep-nops option to non-empty-debug-line.test (PR #137812)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 29 06:51:25 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-bolt

Author: Elvina Yakubova (ElvinaYakubova)

<details>
<summary>Changes</summary>

On openSUSE distribution test is failing due to different .debug_line size without the keep-nops option

---
Full diff: https://github.com/llvm/llvm-project/pull/137812.diff


1 Files Affected:

- (modified) bolt/test/non-empty-debug-line.test (+1-1) 


``````````diff
diff --git a/bolt/test/non-empty-debug-line.test b/bolt/test/non-empty-debug-line.test
index 0650e9ec1c7ab..79c0ea46c8f6c 100644
--- a/bolt/test/non-empty-debug-line.test
+++ b/bolt/test/non-empty-debug-line.test
@@ -4,7 +4,7 @@
 REQUIRES: system-linux
 
 RUN: %clang %cflags %S/Inputs/hello.c -g -o %t
-RUN: llvm-bolt %t -o %t1 --update-debug-sections --funcs=_start
+RUN: llvm-bolt %t -o %t1 --update-debug-sections --funcs=_start -keep-nops
 RUN: llvm-readobj -S %t > %t2
 RUN: llvm-readobj -S %t1 >> %t2
 RUN: FileCheck %s --input-file %t2

``````````

</details>


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


More information about the llvm-commits mailing list