Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1025)

Unified Diff: src/untrusted/pll_loader/pll_loader.h

Issue 1825893002: PNaCl Dynamic Linking: Added portable dependencies to shared objects. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Responded to code review Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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().

Powered by Google App Engine
This is Rietveld 408576698