mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 10:42:05 +00:00
d648aa1b8e
Replace a single dash with a double dash for options that have more than a single letter. llvm-bolt-wrapper.py has special treatment for output options such as "-o" and "-w" causing issues when a single dash is used, e.g. for "-write-dwp". The wrapper can be fixed as well, but using a double dash has other advantages as well. Reviewed By: rafauler Differential Revision: https://reviews.llvm.org/D127538
22 lines
581 B
Plaintext
22 lines
581 B
Plaintext
# Verifies that BOLT emits DWARF line table with the same size if
|
|
# no functions with debug info were modified.
|
|
|
|
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-readobj -S %t > %t2
|
|
RUN: llvm-readobj -S %t1 >> %t2
|
|
RUN: FileCheck %s --input-file %t2
|
|
|
|
# Check the input and grab .debug_line size.
|
|
CHECK: File:
|
|
CHECK: Name: .debug_line
|
|
CHECK: Size: [[SIZE:[0-9]+]]
|
|
|
|
# Verify .debug_line size is the same after BOLT.
|
|
CHECK: File:
|
|
CHECK: Name: .debug_line
|
|
CHECK: Size:
|
|
CHECK-SAME: [[SIZE]]
|