File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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+
240248llvm::Instruction *ProjectIRDB::getInstruction (std::size_t Id) {
241249 if (IDInstructionMapping.count (Id)) {
242250 return IDInstructionMapping[Id];
You can’t perform that action at this time.
0 commit comments