summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Schuetze <r.sagitario@gmx.de>2023-04-02 09:46:49 (GMT)
committerRainer Schuetze <r.sagitario@gmx.de>2023-04-02 09:46:49 (GMT)
commita21b4159ff2e72f8ad356c602db47bf2644498b1 (patch)
tree8cf95547d885ed859dff8aa98b1c88598120aa6c
parentda6546c45efdbf53f796192d1b65c5557d1f1882 (diff)
downloadcv2pdb-a21b4159ff2e72f8ad356c602db47bf2644498b1.zip
cv2pdb-a21b4159ff2e72f8ad356c602db47bf2644498b1.tar.gz
cv2pdb-a21b4159ff2e72f8ad356c602db47bf2644498b1.tar.bz2
remove unnecessary BASE_DWARF_TYPE, BASE_USER_TYPE is enough to represent the CodeView base index
-rw-r--r--src/cv2pdb.h3
-rw-r--r--src/dwarf2pdb.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/cv2pdb.h b/src/cv2pdb.h
index 76d6340..c61a74b 100644
--- a/src/cv2pdb.h
+++ b/src/cv2pdb.h
@@ -245,10 +245,9 @@ public:
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;
diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp
index c46ab32..b97dcb9 100644
--- a/src/dwarf2pdb.cpp
+++ b/src/dwarf2pdb.cpp
@@ -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;