LLVM 20.0.0git
Macros | Functions
CVSymbolVisitor.cpp File Reference
#include "llvm/DebugInfo/CodeView/CVSymbolVisitor.h"
#include "llvm/DebugInfo/CodeView/CodeView.h"
#include "llvm/DebugInfo/CodeView/SymbolRecord.h"
#include "llvm/DebugInfo/CodeView/SymbolRecordHelpers.h"
#include "llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h"
#include "llvm/Support/BinaryStreamArray.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"

Go to the source code of this file.

Macros

#define SYMBOL_RECORD(EnumName, EnumVal, Name)
 
#define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)    SYMBOL_RECORD(EnumVal, EnumVal, AliasName)
 

Functions

template<typename T >
static Error visitKnownRecord (CVSymbol &Record, SymbolVisitorCallbacks &Callbacks)
 
static Error finishVisitation (CVSymbol &Record, SymbolVisitorCallbacks &Callbacks)
 

Macro Definition Documentation

◆ SYMBOL_RECORD

#define SYMBOL_RECORD (   EnumName,
  EnumVal,
  Name 
)
Value:
case EnumName: { \
if (auto EC = visitKnownRecord<Name>(Record, Callbacks)) \
return EC; \
break; \
}
StringLiteral EnumName

◆ SYMBOL_RECORD_ALIAS

#define SYMBOL_RECORD_ALIAS (   EnumName,
  EnumVal,
  Name,
  AliasName 
)     SYMBOL_RECORD(EnumVal, EnumVal, AliasName)

Function Documentation

◆ finishVisitation()

static Error finishVisitation ( CVSymbol Record,
SymbolVisitorCallbacks Callbacks 
)
static

◆ visitKnownRecord()

template<typename T >
static Error visitKnownRecord ( CVSymbol Record,
SymbolVisitorCallbacks Callbacks 
)
static

Definition at line 25 of file CVSymbolVisitor.cpp.

References llvm::codeview::EC, and llvm::Error::success().