Skip to content

Commit

Permalink
remove unnecessary BASE_DWARF_TYPE, BASE_USER_TYPE is enough to repre…
Browse files Browse the repository at this point in the history
…sent the CodeView base index
  • Loading branch information
rainers committed Apr 2, 2023
1 parent da6546c commit a21b415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/cv2pdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,9 @@ class CV2PDB : public LastError
int allocDwarfTypes;

static constexpr int BASE_USER_TYPE = 0x1000;
static constexpr int BASE_DWARF_TYPE = 0x1000;

int nextUserType = BASE_USER_TYPE;
int nextDwarfType = BASE_DWARF_TYPE;
int nextDwarfType = BASE_USER_TYPE;
int objectType;

int emptyFieldListType;
Expand Down
2 changes: 1 addition & 1 deletion src/dwarf2pdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2143,7 +2143,7 @@ bool CV2PDB::addDWARFPublics()
mspdb::Mod* mod = globalMod();

int type = 0;
int rc = mod->AddPublic2("public_all", img.text.secNo + 1, 0, BASE_DWARF_TYPE);
int rc = mod->AddPublic2("public_all", img.text.secNo + 1, 0, BASE_USER_TYPE);
if (rc <= 0)
return setError("cannot add public");
return true;
Expand Down

0 comments on commit a21b415

Please sign in to comment.