diff options
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 9ead2aee7..c46a0621d 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -735,6 +735,11 @@ struct PrintSExpression : public Visitor<PrintSExpression> { visitFunction(child.get()); o << maybeNewLine; } + for (auto& section : curr->userSections) { + doIndent(o, indent); + o << ";; custom section \"" << section.name << "\", size " << section.data.size(); + o << maybeNewLine; + } decIndent(); o << maybeNewLine; currModule = nullptr; |