LLVM 23.0.0git
llvm::cas::NamedValuesSchema::Builder Class Reference

A builder class for creating nodes in NamedValuesSchema. More...

#include "llvm/CAS/NamedValuesSchema.h"

Public Member Functions

 Builder (ObjectStore &CAS)
LLVM_ABI void add (StringRef Name, ObjectRef Ref)
 Add an entry to the builder.
LLVM_ABI Expected< NamedValuesProxybuild ()
 Build the node from added entries.

Detailed Description

A builder class for creating nodes in NamedValuesSchema.

Definition at line 77 of file NamedValuesSchema.h.

Constructor & Destructor Documentation

◆ Builder()

llvm::cas::NamedValuesSchema::Builder::Builder ( ObjectStore & CAS)
inline

Definition at line 79 of file NamedValuesSchema.h.

Member Function Documentation

◆ add()

void NamedValuesSchema::Builder::add ( StringRef Name,
ObjectRef Ref )

Add an entry to the builder.

Definition at line 171 of file NamedValuesSchema.cpp.

References llvm::Ref, and llvm::StringSaver::save().

◆ build()

Expected< NamedValuesProxy > NamedValuesSchema::Builder::build ( )

Build the node from added entries.

Definition at line 176 of file NamedValuesSchema.cpp.

References llvm::cas::NamedValuesSchema::create().


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