LLVM  3.7.0
Public Member Functions | List of all members
llvm::ContextAndReplaceableUses Class Reference

Pointer to the context, with optional RAUW support. More...

#include <Metadata.h>

Public Member Functions

 ContextAndReplaceableUses (LLVMContext &Context)
 
 ContextAndReplaceableUses (std::unique_ptr< ReplaceableMetadataImpl > ReplaceableUses)
 
 ~ContextAndReplaceableUses ()
 
 operator LLVMContext & ()
 
bool hasReplaceableUses () const
 Whether this contains RAUW support. More...
 
LLVMContextgetContext () const
 
ReplaceableMetadataImplgetReplaceableUses () const
 
void makeReplaceable (std::unique_ptr< ReplaceableMetadataImpl > ReplaceableUses)
 Assign RAUW support to this. More...
 
std::unique_ptr
< ReplaceableMetadataImpl
takeReplaceableUses ()
 Drop RAUW support. More...
 

Detailed Description

Pointer to the context, with optional RAUW support.

Either a raw (non-null) pointer to the LLVMContext, or an owned pointer to ReplaceableMetadataImpl (which has a reference to LLVMContext).

Definition at line 654 of file Metadata.h.

Constructor & Destructor Documentation

llvm::ContextAndReplaceableUses::ContextAndReplaceableUses ( LLVMContext Context)
inline

Definition at line 665 of file Metadata.h.

llvm::ContextAndReplaceableUses::ContextAndReplaceableUses ( std::unique_ptr< ReplaceableMetadataImpl ReplaceableUses)
inline

Definition at line 666 of file Metadata.h.

References getReplaceableUses().

llvm::ContextAndReplaceableUses::~ContextAndReplaceableUses ( )
inline

Definition at line 671 of file Metadata.h.

References getReplaceableUses().

Member Function Documentation

LLVMContext& llvm::ContextAndReplaceableUses::getContext ( ) const
inline
ReplaceableMetadataImpl* llvm::ContextAndReplaceableUses::getReplaceableUses ( ) const
inline
bool llvm::ContextAndReplaceableUses::hasReplaceableUses ( ) const
inline

Whether this contains RAUW support.

Definition at line 676 of file Metadata.h.

Referenced by getContext(), getReplaceableUses(), llvm::MDNode::isResolved(), and takeReplaceableUses().

void llvm::ContextAndReplaceableUses::makeReplaceable ( std::unique_ptr< ReplaceableMetadataImpl ReplaceableUses)
inline

Assign RAUW support to this.

Make this replaceable, taking ownership of ReplaceableUses (which must not be null).

Definition at line 695 of file Metadata.h.

References getContext(), and getReplaceableUses().

llvm::ContextAndReplaceableUses::operator LLVMContext & ( )
inline

Definition at line 673 of file Metadata.h.

References getContext().

std::unique_ptr<ReplaceableMetadataImpl> llvm::ContextAndReplaceableUses::takeReplaceableUses ( )
inline

Drop RAUW support.

Cede ownership of RAUW support, returning it.

Definition at line 706 of file Metadata.h.

References getReplaceableUses(), and hasReplaceableUses().


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