LLVM  15.0.0git
CVSymbolVisitor.h
Go to the documentation of this file.
1 //===- CVSymbolVisitor.h ----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
10 #define LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
11 
13 #include "llvm/Support/Error.h"
14 
15 namespace llvm {
16 namespace codeview {
17 class SymbolVisitorCallbacks;
18 
20 public:
21  struct FilterOptions {
25  };
26 
28 
31  Error visitSymbolStream(const CVSymbolArray &Symbols);
32  Error visitSymbolStream(const CVSymbolArray &Symbols, uint32_t InitialOffset);
34  const FilterOptions &Filter);
35 
36 private:
37  SymbolVisitorCallbacks &Callbacks;
38 };
39 
40 } // end namespace codeview
41 } // end namespace llvm
42 
43 #endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
llvm::codeview::CVSymbolVisitor::CVSymbolVisitor
CVSymbolVisitor(SymbolVisitorCallbacks &Callbacks)
Definition: CVSymbolVisitor.cpp:21
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::codeview::CVSymbolVisitor::FilterOptions::ParentRecursiveDepth
llvm::Optional< uint32_t > ParentRecursiveDepth
Definition: CVSymbolVisitor.h:23
llvm::codeview::CVSymbolVisitor::FilterOptions::SymbolOffset
llvm::Optional< uint32_t > SymbolOffset
Definition: CVSymbolVisitor.h:22
Error.h
llvm::Optional< uint32_t >
llvm::codeview::CVSymbolVisitor::FilterOptions
Definition: CVSymbolVisitor.h:21
llvm::codeview::CVSymbolVisitor::visitSymbolStream
Error visitSymbolStream(const CVSymbolArray &Symbols)
Definition: CVSymbolVisitor.cpp:70
llvm::VarStreamArray< CVSymbol >
llvm::codeview::SymbolVisitorCallbacks
Definition: SymbolVisitorCallbacks.h:18
llvm::codeview::CVSymbolVisitor::visitSymbolStreamFiltered
Error visitSymbolStreamFiltered(const CVSymbolArray &Symbols, const FilterOptions &Filter)
Definition: CVSymbolVisitor.cpp:88
llvm::Record
Definition: Record.h:1543
llvm::codeview::CVRecord
CVRecord is a fat pointer (base + size pair) to a symbol or type record.
Definition: CVRecord.h:29
uint32_t
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition: Error.h:155
CVRecord.h
llvm::codeview::CVSymbolVisitor::visitSymbolRecord
Error visitSymbolRecord(CVSymbol &Record)
Definition: CVSymbolVisitor.cpp:58
llvm::codeview::CVSymbolVisitor
Definition: CVSymbolVisitor.h:19
llvm::codeview::CVSymbolVisitor::FilterOptions::ChildRecursiveDepth
llvm::Optional< uint32_t > ChildRecursiveDepth
Definition: CVSymbolVisitor.h:24