| 76 | } |
| 77 | |
| 78 | void MdString::ToXml(IXmlNode& root_node, |
| 79 | const std::string& tag_name) const { |
| 80 | // The TX tag should always be added even if no text. |
| 81 | if (!text_.empty() || tag_name == "TX") { |
| 82 | IXmlNode& node = root_node.AddNode(tag_name); |
| 83 | node.Value(text_); |
| 84 | MdStandardAttribute::ToXml(node); |
| 85 | if (tag_name == "linker_name" && |
| 86 | offset_.has_value() && offset_.value() > 0) { |
| 87 | node.SetAttribute("offset", offset_.value()); |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | |
| 93 |
nothing calls this directly
no test coverage detected