LLVM 22.0.0git
llvm::HasReferenceResolver Class Referencefinal

Do not resolve anything, but keep track of whether a given variable was referenced. More...

#include "llvm/TableGen/Record.h"

Inheritance diagram for llvm::HasReferenceResolver:
[legend]

Public Member Functions

 HasReferenceResolver (const Init *VarNameToTrack)
bool found () const
const Initresolve (const Init *VarName) override
 Return the initializer for the given variable name (should normally be a StringInit), or nullptr if the name could not be resolved.
Public Member Functions inherited from llvm::Resolver
 Resolver (const Record *CurRec)
virtual ~Resolver ()=default
const RecordgetCurrentRecord () const
virtual bool keepUnsetBits () const
bool isFinal () const
void setFinal (bool Final)

Detailed Description

Do not resolve anything, but keep track of whether a given variable was referenced.

Definition at line 2305 of file Record.h.

Constructor & Destructor Documentation

◆ HasReferenceResolver()

llvm::HasReferenceResolver::HasReferenceResolver ( const Init * VarNameToTrack)
inlineexplicit

Definition at line 2310 of file Record.h.

References llvm::Resolver::Resolver().

Member Function Documentation

◆ found()

bool llvm::HasReferenceResolver::found ( ) const
inline

Definition at line 2313 of file Record.h.

◆ resolve()

const Init * HasReferenceResolver::resolve ( const Init * VarName)
overridevirtual

Return the initializer for the given variable name (should normally be a StringInit), or nullptr if the name could not be resolved.

Implements llvm::Resolver.

Definition at line 3410 of file Record.cpp.


The documentation for this class was generated from the following files: