diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-30 17:37:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-30 17:37:31 +0000 |
commit | ee2f195dd3e40f49698ca4dc2666ec09c770e80d (patch) | |
tree | 66fa9a69e5789356dfe844991e64bac9222f3a35 /include/llvm/DebugInfo/CodeView/ModuleDebugFragmentVisitor.h | |
parent | ab44ce3d598882e51a25eb82eb7ae6308de85ae6 (diff) |
Notes
Diffstat (limited to 'include/llvm/DebugInfo/CodeView/ModuleDebugFragmentVisitor.h')
-rw-r--r-- | include/llvm/DebugInfo/CodeView/ModuleDebugFragmentVisitor.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/include/llvm/DebugInfo/CodeView/ModuleDebugFragmentVisitor.h b/include/llvm/DebugInfo/CodeView/ModuleDebugFragmentVisitor.h deleted file mode 100644 index 1f55d2024203a..0000000000000 --- a/include/llvm/DebugInfo/CodeView/ModuleDebugFragmentVisitor.h +++ /dev/null @@ -1,68 +0,0 @@ -//===- ModuleDebugFragmentVisitor.h -----------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENTVISITOR_H -#define LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENTVISITOR_H - -#include "llvm/Support/Error.h" -#include <cstdint> - -namespace llvm { - -namespace codeview { - -class ModuleDebugFileChecksumFragmentRef; -class ModuleDebugFragmentRecord; -class ModuleDebugInlineeLineFragmentRef; -class ModuleDebugLineFragmentRef; -class ModuleDebugUnknownFragmentRef; - -class ModuleDebugFragmentVisitor { -public: - virtual ~ModuleDebugFragmentVisitor() = default; - - virtual Error visitUnknown(ModuleDebugUnknownFragmentRef &Unknown) { - return Error::success(); - } - virtual Error visitLines(ModuleDebugLineFragmentRef &Lines) { - return Error::success(); - } - - virtual Error - visitFileChecksums(ModuleDebugFileChecksumFragmentRef &Checksums) { - return Error::success(); - } - - virtual Error visitInlineeLines(ModuleDebugInlineeLineFragmentRef &Inlinees) { - return Error::success(); - } - - virtual Error finished() { return Error::success(); } -}; - -Error visitModuleDebugFragment(const ModuleDebugFragmentRecord &R, - ModuleDebugFragmentVisitor &V); - -template <typename T> -Error visitModuleDebugFragments(T &&FragmentRange, - ModuleDebugFragmentVisitor &V) { - for (const auto &L : FragmentRange) { - if (auto EC = visitModuleDebugFragment(L, V)) - return EC; - } - if (auto EC = V.finished()) - return EC; - return Error::success(); -} - -} // end namespace codeview - -} // end namespace llvm - -#endif // LLVM_DEBUGINFO_CODEVIEW_MODULEDEBUGFRAGMENTVISITOR_H |