Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
wasm-watermarker
Commits
c419a4f5
Commit
c419a4f5
authored
Jul 07, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: Output the result
parent
e5319c9b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
snpi.cpp
src/snpi.cpp
+11
-0
No files found.
src/snpi.cpp
View file @
c419a4f5
...
...
@@ -16,9 +16,20 @@ int main(int argc, char *argv[]) {
// Read the input module
wasm
::
Module
module
;
wasm
::
ModuleReader
{}.
read
(
inputFile
,
module
);
// Output the result
wasm
::
ModuleWriter
{}.
writeText
(
module
,
""
);
}
catch
(
const
wasm
::
ParseException
&
e
)
{
e
.
dump
(
std
::
cerr
);
return
1
;
}
catch
(
const
std
::
exception
&
e
)
{
fmt
::
print
(
std
::
cerr
,
"exception: {}
\n
"
,
e
.
what
());
return
1
;
}
catch
(...)
{
fmt
::
print
(
std
::
cerr
,
"unknown exception
\n
"
);
return
1
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment