[PATCH] D56294: [ObjectYAML] [COFF] Support multiple symbols with the same name
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 4 13:36:48 PST 2019
ruiu added inline comments.
================
Comment at: tools/obj2yaml/coff2yaml.cpp:208
}
- Rel.SymbolName = *SymbolNameOrErr;
+ if (SymbolUnique[*SymbolNameOrErr])
+ Rel.SymbolName = *SymbolNameOrErr;
----------------
Doesn't this insert a new key if `*SymbolNameOrErr` does not exist in the map? I don't think that affects correctness of the program, but that's probably a waste of time and memory. I'd use `count` instead.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56294/new/
https://reviews.llvm.org/D56294
More information about the llvm-commits
mailing list