File tree 3 files changed +5
-9
lines changed
lib/Target/CSKY/MCTargetDesc
test/DebugInfo/Symbolize/ELF
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -168,8 +168,7 @@ void CSKYELFStreamer::EmitMappingSymbol(StringRef Name) {
168
168
169
169
State = (Name == " $t" ? EMS_Text : EMS_Data);
170
170
171
- auto *Symbol = cast<MCSymbolELF>(getContext ().getOrCreateSymbol (
172
- Name + " ." + Twine (MappingSymbolCounter++)));
171
+ auto *Symbol = cast<MCSymbolELF>(getContext ().createLocalSymbol (Name));
173
172
emitLabel (Symbol);
174
173
175
174
Symbol->setType (ELF::STT_NOTYPE);
Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ class CSKYTargetELFStreamer : public CSKYTargetStreamer {
99
99
};
100
100
101
101
class CSKYELFStreamer : public MCELFStreamer {
102
- int64_t MappingSymbolCounter = 0 ;
103
-
104
102
void EmitMappingSymbol (StringRef Name);
105
103
106
104
public:
@@ -138,7 +136,6 @@ class CSKYELFStreamer : public MCELFStreamer {
138
136
MCELFStreamer::emitValueImpl (Value, Size , Loc);
139
137
}
140
138
void reset () override {
141
- MappingSymbolCounter = 0 ;
142
139
State = EMS_None;
143
140
MCELFStreamer::reset ();
144
141
}
Original file line number Diff line number Diff line change 5
5
6
6
## Verify that mapping symbols are actually present in the object at expected
7
7
## addresses.
8
- # RUN: llvm-nm --special-syms %t | FileCheck %s -check-prefix MAPPING_SYM
8
+ # RUN: llvm-nm --special-syms %t | FileCheck %s -check-prefix MAPPING_SYM --match-full-lines
9
9
10
- # MAPPING_SYM: 00000000 t $d.0
11
- # MAPPING_SYM-NEXT: 00000008 t $d.2
12
- # MAPPING_SYM-NEXT: 00000004 t $t.1
10
+ # MAPPING_SYM: 00000000 t $d
11
+ # MAPPING_SYM-NEXT: 00000008 t $d
12
+ # MAPPING_SYM-NEXT: 00000004 t $t
13
13
# MAPPING_SYM-NEXT: 00000000 T foo
14
14
15
15
# RUN: llvm-symbolizer --obj=%t 0 4 0xc | FileCheck %s -check-prefix SYMBOL
You can’t perform that action at this time.
0 commit comments