mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-24 20:26:22 -04:00
eccb0fb0b3
Most clients only need CVType and CVSymbol, not structs for every type and symbol. Move CVSymbol and CVType to CVRecord.h to accomplish this. Update some of the common headers that need CVSymbol and CVType to use the new location.
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
//===- CVSymbolVisitor.h ----------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
|
|
#define LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
|
|
|
|
#include "llvm/DebugInfo/CodeView/CVRecord.h"
|
|
#include "llvm/Support/ErrorOr.h"
|
|
|
|
namespace llvm {
|
|
namespace codeview {
|
|
class SymbolVisitorCallbacks;
|
|
|
|
class CVSymbolVisitor {
|
|
public:
|
|
CVSymbolVisitor(SymbolVisitorCallbacks &Callbacks);
|
|
|
|
Error visitSymbolRecord(CVSymbol &Record);
|
|
Error visitSymbolRecord(CVSymbol &Record, uint32_t Offset);
|
|
Error visitSymbolStream(const CVSymbolArray &Symbols);
|
|
Error visitSymbolStream(const CVSymbolArray &Symbols, uint32_t InitialOffset);
|
|
|
|
private:
|
|
SymbolVisitorCallbacks &Callbacks;
|
|
};
|
|
|
|
} // end namespace codeview
|
|
} // end namespace llvm
|
|
|
|
#endif // LLVM_DEBUGINFO_CODEVIEW_CVSYMBOLVISITOR_H
|