File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ void ModuleSymbolTable::CollectAsmSymbols(
144
144
Streamer.flushSymverDirectives ();
145
145
146
146
for (auto &KV : Streamer) {
147
- StringRef Key = KV.first () ;
147
+ StringRef Key = KV.first ;
148
148
RecordStreamer::State Value = KV.second ;
149
149
// FIXME: For now we just assume that all asm symbols are executable.
150
150
uint32_t Res = BasicSymbolRef::SF_Executable;
Original file line number Diff line number Diff line change 14
14
#include " llvm/MC/MCDirectives.h"
15
15
#include " llvm/MC/MCStreamer.h"
16
16
#include " llvm/Support/SMLoc.h"
17
+ #include " llvm/ADT/MapVector.h"
17
18
#include < vector>
18
19
19
20
namespace llvm {
@@ -28,11 +29,11 @@ class RecordStreamer : public MCStreamer {
28
29
29
30
private:
30
31
const Module &M;
31
- StringMap< State> Symbols;
32
+ MapVector<StringRef, State> Symbols;
32
33
// Map of aliases created by .symver directives, saved so we can update
33
34
// their symbol binding after parsing complete. This maps from each
34
35
// aliasee to its list of aliases.
35
- DenseMap <const MCSymbol *, std::vector<StringRef>> SymverAliasMap;
36
+ MapVector <const MCSymbol *, std::vector<StringRef>> SymverAliasMap;
36
37
37
38
// / Get the state recorded for the given symbol.
38
39
State getSymbolState (const MCSymbol *Sym);
@@ -70,7 +71,7 @@ class RecordStreamer : public MCStreamer {
70
71
void flushSymverDirectives ();
71
72
72
73
// Symbols iterators
73
- using const_iterator = StringMap< State>::const_iterator;
74
+ using const_iterator = MapVector<StringRef, State>::const_iterator;
74
75
const_iterator begin ();
75
76
const_iterator end ();
76
77
You can’t perform that action at this time.
0 commit comments