svf-lib 1.0.1762 → 1.0.1763

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,7 +67,7 @@ private:
67
67
  static bool preProcessed;
68
68
  SymbolTableInfo* symInfo;
69
69
  SVFModule* svfModule; ///< Borrowed from singleton SVFModule::svfModule
70
- std::unique_ptr<LLVMContext> cxts;
70
+ std::unique_ptr<LLVMContext> owned_ctx;
71
71
  std::vector<std::unique_ptr<Module>> owned_modules;
72
72
  std::vector<std::reference_wrapper<Module>> modules;
73
73
 
@@ -111,8 +111,10 @@ public:
111
111
  llvmModuleSet = nullptr;
112
112
  }
113
113
 
114
- // The parameter of context should be the llvm context of the mod, the llvm context of mod and extapi module should be the same
115
- static SVFModule* buildSVFModule(Module& mod, std::unique_ptr<LLVMContext> context);
114
+ // Build an SVF module from a given LLVM Module instance (for use e.g. in a LLVM pass)
115
+ static SVFModule* buildSVFModule(Module& mod);
116
+
117
+ // Build an SVF module from the bitcode files provided in `moduleNameVec`
116
118
  static SVFModule* buildSVFModule(const std::vector<std::string>& moduleNameVec);
117
119
 
118
120
  inline SVFModule* getSVFModule()
@@ -356,8 +358,8 @@ private:
356
358
  std::vector<const Function*> getLLVMGlobalFunctions(const GlobalVariable* global);
357
359
 
358
360
  void loadModules(const std::vector<std::string>& moduleNameVec);
359
- // The llvm context of app module and extapi module should be the same
360
- void loadExtAPIModules(std::unique_ptr<LLVMContext> context = nullptr);
361
+ // Loads ExtAPI bitcode file; uses LLVMContext made while loading module bitcode files or from Module
362
+ void loadExtAPIModules();
361
363
  void addSVFMain();
362
364
 
363
365
  void createSVFDataStructure();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svf-lib",
3
- "version": "1.0.1762",
3
+ "version": "1.0.1763",
4
4
  "description": "SVF's npm support",
5
5
  "main": "index.js",
6
6
  "scripts": {