summaryrefslogtreecommitdiff
path: root/src/support/path.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/path.h')
-rw-r--r--src/support/path.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/support/path.h b/src/support/path.h
index 505ba0d88..e9f675142 100644
--- a/src/support/path.h
+++ b/src/support/path.h
@@ -28,7 +28,9 @@ namespace wasm {
namespace Path {
-std::string getPathSeparator();
+char getPathSeparator();
+std::string getDirName(const std::string& path);
+std::string getBaseName(const std::string& path);
// Get the binaryen root dor.
std::string getBinaryenRoot();
@@ -37,10 +39,10 @@ std::string getBinaryenRoot();
std::string getBinaryenBinDir();
// Set the binaryen bin dir (allows tools to change it based on user input).
-void setBinaryenBinDir(std::string dir);
+void setBinaryenBinDir(const std::string& dir);
// Gets the path to a binaryen binary tool, like wasm-opt.
-std::string getBinaryenBinaryTool(std::string name);
+std::string getBinaryenBinaryTool(const std::string& name);
} // namespace Path