Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 22, 2024
1 parent 1dd231b commit 58b8db8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/src/dyn_regs.C
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <string>

namespace Dyninst {
// These are used in MachRegister.C
std::unordered_map<signed int, std::string> names;
std::map<Dyninst::Architecture, std::vector<Dyninst::MachRegister>> all_regs;
}
Expand Down
1 change: 1 addition & 0 deletions common/src/registers/MachRegister.C
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace {

namespace Dyninst {

// These are defined in dyn_regs.C to ensure global constructor initialization ordering
extern std::unordered_map<signed int, std::string> names;
extern std::map<Dyninst::Architecture, std::vector<Dyninst::MachRegister>> all_regs;

Expand Down

0 comments on commit 58b8db8

Please sign in to comment.