Skip to content

Commit d27a15f

Browse files
committed
Revert "Fixes linking issue, where PTS requires getNumGlobals"
This reverts commit bb292c3.
1 parent bb292c3 commit d27a15f

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

include/phasar/DB/ProjectIRDB.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,7 @@ class ProjectIRDB {
172172
return IDInstructionMapping.size();
173173
}
174174

175-
[[nodiscard]] std::size_t getNumGlobals() const {
176-
std::size_t Ret = 0;
177-
for (const auto &[File, Module] : Modules) {
178-
Ret += Module->global_size();
179-
}
180-
return Ret;
181-
}
175+
[[nodiscard]] std::size_t getNumGlobals() const;
182176

183177
[[nodiscard]] llvm::Instruction *getInstruction(std::size_t Id);
184178

lib/DB/ProjectIRDB.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ llvm::Module *ProjectIRDB::getModule(const std::string &ModuleName) {
237237
return nullptr;
238238
}
239239

240+
std::size_t ProjectIRDB::getNumGlobals() const {
241+
std::size_t Ret = 0;
242+
for (const auto &[File, Module] : Modules) {
243+
Ret += Module->global_size();
244+
}
245+
return Ret;
246+
}
247+
240248
llvm::Instruction *ProjectIRDB::getInstruction(std::size_t Id) {
241249
if (IDInstructionMapping.count(Id)) {
242250
return IDInstructionMapping[Id];

0 commit comments

Comments
 (0)