commit | 3c2f688e70997bcdc856578adbed492a0b581fa9 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Sun Nov 12 09:23:49 2023 -0700 |
committer | Tom Tromey <tom@tromey.com> | Mon Jan 08 18:40:21 2024 -0700 |
tree | 8708968d390bbafc5e1be8aa595f73aaad673852 | |
parent | 7531822f109138039881f0427ccdfd760ec19e07 [diff] |
Don't use objfile::intern in DWO code The DWO code in the DWARF reader currently uses objfile::intern. This accesses a shared data structure and so would be racy when used from multiple threads. I don't believe this can happen right now, but background reading could provoke this, and in any case it's better to avoid this, just to be sure. This patch changes this code to just use a std::string. A new type is introduced to do hash table lookups, to avoid unnecessary copies.