diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-07-01 13:22:02 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-07-01 13:22:02 +0000 |
commit | 9df3605dea17e84f8183581f6103bd0c79e2a606 (patch) | |
tree | 70a2f36ce9eb9bb213603cd7f2f120af53fc176f /include/llvm/ObjectYAML/CodeViewYAMLSymbols.h | |
parent | 08bbd35a80bf7765fe0d3043f9eb5a2f2786b649 (diff) |
Diffstat (limited to 'include/llvm/ObjectYAML/CodeViewYAMLSymbols.h')
-rw-r--r-- | include/llvm/ObjectYAML/CodeViewYAMLSymbols.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/llvm/ObjectYAML/CodeViewYAMLSymbols.h b/include/llvm/ObjectYAML/CodeViewYAMLSymbols.h index 9b411e8b074fc..791193c78f193 100644 --- a/include/llvm/ObjectYAML/CodeViewYAMLSymbols.h +++ b/include/llvm/ObjectYAML/CodeViewYAMLSymbols.h @@ -17,13 +17,18 @@ #include "llvm/DebugInfo/CodeView/CodeView.h" #include "llvm/DebugInfo/CodeView/SymbolRecord.h" -#include "llvm/ObjectYAML/YAML.h" +#include "llvm/Support/Error.h" +#include "llvm/Support/YAMLTraits.h" +#include <memory> namespace llvm { namespace CodeViewYAML { + namespace detail { + struct SymbolRecordBase; -} + +} // end namespace detail struct SymbolRecord { std::shared_ptr<detail::SymbolRecordBase> Symbol; @@ -31,13 +36,14 @@ struct SymbolRecord { codeview::CVSymbol toCodeViewSymbol(BumpPtrAllocator &Allocator, codeview::CodeViewContainer Container) const; + static Expected<SymbolRecord> fromCodeViewSymbol(codeview::CVSymbol Symbol); }; -} // namespace CodeViewYAML -} // namespace llvm +} // end namespace CodeViewYAML +} // end namespace llvm LLVM_YAML_DECLARE_MAPPING_TRAITS(CodeViewYAML::SymbolRecord) LLVM_YAML_IS_SEQUENCE_VECTOR(CodeViewYAML::SymbolRecord) -#endif +#endif // LLVM_OBJECTYAML_CODEVIEWYAMLSYMBOLS_H |