LLVM  14.0.0git
Macros | Functions
CVSymbolVisitor.cpp File Reference
#include "llvm/DebugInfo/CodeView/CVSymbolVisitor.h"
#include "llvm/DebugInfo/CodeView/CodeViewError.h"
#include "llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h"
#include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
Include dependency graph for CVSymbolVisitor.cpp:

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; \
}

◆ 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 21 of file CVSymbolVisitor.cpp.

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

llvm::codeview::CompileSym2Flags::EC
@ EC
llvm::Record
Definition: Record.h:1472
EnumName
StringLiteral EnumName
Definition: MCSectionMachO.cpp:19