Chromium Code Reviews| Index: src/untrusted/pll_loader/pll_loader.h |
| diff --git a/src/untrusted/pll_loader/pll_loader.h b/src/untrusted/pll_loader/pll_loader.h |
| index 0cdecc352c313e24ef0485a12773d155cc6a6ce3..cb833c5911ccfd16e0c40bc4b1f9bb303bc1dd3b 100644 |
| --- a/src/untrusted/pll_loader/pll_loader.h |
| +++ b/src/untrusted/pll_loader/pll_loader.h |
| @@ -19,7 +19,7 @@ class PLLModule { |
| static uint32_t HashString(const char *sp); |
| - const PLLRoot *root() { return root_; } |
| + const PLLRoot *root() const { return root_; } |
|
Mark Seaborn
2016/04/01 23:42:19
Nit: The whole PLLModule object is stateless since
Sean Klein
2016/04/02 00:50:33
Got it. Const removed from this function. To compi
|
| const char *GetExportedSymbolName(size_t i) { |
| return root_->string_table + root_->exported_names[i]; |
| @@ -46,13 +46,15 @@ class ModuleSet { |
| public: |
| // Load a PLL by filename. Does not add the filename to a known set of loaded |
| // modules, and will not de-duplicate loading modules. |
| - void AddByFilename(const char *filename); |
| + // Returns a pointer to the PLL's pso_root. |
|
Mark Seaborn
2016/04/01 23:42:19
Nit: Should return a PLLRoot* rather than void* th
Sean Klein
2016/04/02 00:50:33
Done.
|
| + void *AddByFilename(const char *filename); |
| // Change the search path used by the linker when looking for PLLs by soname. |
| void SetSonameSearchPath(const std::vector<std::string> &dir_list); |
| // Load a PLL by soname and add the soname to the set of loaded modules. |
| - void AddBySoname(const char *soname); |
| + // Returns a pointer to the PLL's pso_root if it is loaded, NULL otherwise. |
| + void *AddBySoname(const char *soname); |
| // Looks up a symbol in the set of modules. This does a linear search of |
| // the modules, in the order that they were added using AddByFilename(). |