File tree 2 files changed +2
-8
lines changed 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1725,12 +1725,6 @@ void RewriteInstance::adjustFunctionBoundaries() {
1725
1725
if (!Function.isSymbolValidInScope (Symbol, SymbolSize))
1726
1726
break ;
1727
1727
1728
- // Ignore unnamed symbols. Used, for example, by debugging info on RISC-V.
1729
- if (BC->isRISCV () && cantFail (Symbol.getName ()).empty ()) {
1730
- ++NextSymRefI;
1731
- continue ;
1732
- }
1733
-
1734
1728
// Skip basic block labels. This happens on RISC-V with linker relaxation
1735
1729
// enabled because every branch needs a relocation and corresponding
1736
1730
// symbol. We don't want to add such symbols as entry points.
Original file line number Diff line number Diff line change 5
5
6
6
// RUN: %clang %cflags -g -Wl,-q -o %t %s
7
7
8
- /// Verify that the binary indeed contains an unnamed symbol at _start
8
+ /// Verify that the binary indeed contains a fake label ".L0 " at _start.
9
9
// RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=CHECK-ELF
10
10
// CHECK-ELF-DAG: [[#%x,START:]] {{.*}} FUNC GLOBAL DEFAULT [[#%d,SECTION:]] _start{{$}}
11
11
// CHECK-ELF-DAG: [[#%x,START]] {{.*}} NOTYPE LOCAL DEFAULT [[#SECTION]] .L0 {{$}}
12
12
13
- /// Verify that BOLT did not create an extra entry point for the unnamed symbol
13
+ /// Verify that BOLT did not create an extra entry point for the fake label.
14
14
// RUN: llvm-bolt -o %t.bolt %t --print-cfg | FileCheck %s
15
15
// CHECK: Binary Function "_start" after building cfg {
16
16
// CHECK: IsMultiEntry: 0
You can’t perform that action at this time.
0 commit comments