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
12 lines
503 B
Plaintext
12 lines
503 B
Plaintext
# Make sure inlining from a unit with debug info into unit without
|
|
# debug info does not cause a crash.
|
|
|
|
RUN: %clangxx %cxxflags %S/Inputs/inlined.cpp -c -o %T/inlined.o
|
|
RUN: %clangxx %cxxflags %S/Inputs/inlinee.cpp -c -o %T/inlinee.o -g
|
|
RUN: %clangxx %cxxflags %T/inlined.o %T/inlinee.o -o %t
|
|
|
|
RUN: llvm-bolt %t -o %t.bolt --update-debug-sections --reorder-blocks=reverse \
|
|
RUN: --inline-small-functions --force-inline=main | FileCheck %s
|
|
|
|
CHECK-NOT: BOLT: 0 out of {{.*}} functions were overwritten
|