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
13 lines
356 B
Plaintext
Executable File
13 lines
356 B
Plaintext
Executable File
# This reproduces issue 26 from our github repo
|
|
|
|
# RUN: yaml2obj %p/Inputs/issue26.yaml &> %t.exe
|
|
# RUN: llvm-bolt %t.exe --relocs --print-cfg -o %t.out \
|
|
# RUN: | FileCheck %s
|
|
|
|
CHECK-NOT: BOLT-WARNING: CFG invalid in XYZ @ .LBB0
|
|
|
|
CHECK: Binary Function "XYZ"
|
|
|
|
CHECK: .Ltmp0 (1 instructions, align : 1)
|
|
CHECK-NEXT: Secondary Entry Point: FUNCat0x4004e9
|