summaryrefslogtreecommitdiff
path: root/src/wasm-link.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-link.h')
-rw-r--r--src/wasm-link.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/wasm-link.h b/src/wasm-link.h
index 713ad4c1..c1509802 100644
--- a/src/wasm-link.h
+++ b/src/wasm-link.h
@@ -29,8 +29,8 @@ namespace link {
class LinkerInputBinary;
struct FunctionImport {
- StringSlice module_name;
- StringSlice name;
+ std::string module_name;
+ std::string name;
Index sig_index;
bool active; /* Is this import present in the linked binary */
Index relocated_function_index;
@@ -39,8 +39,8 @@ struct FunctionImport {
};
struct GlobalImport {
- StringSlice module_name;
- StringSlice name;
+ std::string module_name;
+ std::string name;
Type type;
bool mutable_;
};
@@ -54,15 +54,10 @@ struct DataSegment {
struct Export {
ExternalKind kind;
- StringSlice name;
+ std::string name;
Index index;
};
-struct SectionDataCustom {
- /* Reference to string data stored in the containing InputBinary */
- StringSlice name;
-};
-
struct Section {
WABT_DISALLOW_COPY_AND_ASSIGN(Section);
Section();
@@ -83,8 +78,6 @@ struct Section {
Index count;
union {
- /* CUSTOM section data */
- SectionDataCustom custom;
/* DATA section data */
std::vector<DataSegment>* data_segments;
/* MEMORY section data */