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(
144144 Streamer.flushSymverDirectives ();
145145
146146 for (auto &KV : Streamer) {
147- StringRef Key = KV.first () ;
147+ StringRef Key = KV.first ;
148148 RecordStreamer::State Value = KV.second ;
149149 // FIXME: For now we just assume that all asm symbols are executable.
150150 uint32_t Res = BasicSymbolRef::SF_Executable;
Original file line number Diff line number Diff line change 1414#include " llvm/MC/MCDirectives.h"
1515#include " llvm/MC/MCStreamer.h"
1616#include " llvm/Support/SMLoc.h"
17+ #include " llvm/ADT/MapVector.h"
1718#include < vector>
1819
1920namespace llvm {
@@ -28,11 +29,11 @@ class RecordStreamer : public MCStreamer {
2829
2930private:
3031 const Module &M;
31- StringMap< State> Symbols;
32+ MapVector<StringRef, State> Symbols;
3233 // Map of aliases created by .symver directives, saved so we can update
3334 // their symbol binding after parsing complete. This maps from each
3435 // aliasee to its list of aliases.
35- DenseMap <const MCSymbol *, std::vector<StringRef>> SymverAliasMap;
36+ MapVector <const MCSymbol *, std::vector<StringRef>> SymverAliasMap;
3637
3738 // / Get the state recorded for the given symbol.
3839 State getSymbolState (const MCSymbol *Sym);
@@ -70,7 +71,7 @@ class RecordStreamer : public MCStreamer {
7071 void flushSymverDirectives ();
7172
7273 // Symbols iterators
73- using const_iterator = StringMap< State>::const_iterator;
74+ using const_iterator = MapVector<StringRef, State>::const_iterator;
7475 const_iterator begin ();
7576 const_iterator end ();
7677
You can’t perform that action at this time.
0 commit comments