LLVM  8.0.1
Public Types | Public Member Functions | Friends | List of all members
llvm::Comdat Class Reference

#include "llvm/IR/Comdat.h"

Public Types

enum  SelectionKind {
  Any, ExactMatch, Largest, NoDuplicates,
  SameSize
}
 

Public Member Functions

 Comdat (const Comdat &)=delete
 
 Comdat (Comdat &&C)
 
SelectionKind getSelectionKind () const
 
void setSelectionKind (SelectionKind Val)
 
StringRef getName () const
 
void print (raw_ostream &OS, bool IsForDebug=false) const
 
void dump () const
 

Friends

class Module
 

Detailed Description

Definition at line 32 of file Comdat.h.

Member Enumeration Documentation

◆ SelectionKind

Enumerator
Any 

The linker may choose any COMDAT.

ExactMatch 

The data referenced by the COMDAT must be the same.

Largest 

The linker will choose the largest COMDAT.

NoDuplicates 

No other Module may specify this COMDAT.

SameSize 

The data referenced by the COMDAT must be the same size.

Definition at line 34 of file Comdat.h.

Constructor & Destructor Documentation

◆ Comdat() [1/2]

llvm::Comdat::Comdat ( const Comdat )
delete

◆ Comdat() [2/2]

Comdat::Comdat ( Comdat &&  C)

Definition at line 23 of file Comdat.cpp.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void Comdat::dump ( ) const

Definition at line 4313 of file AsmWriter.cpp.

References llvm::dbgs(), LLVM_DUMP_METHOD, and print().

Referenced by setSelectionKind().

◆ getName()

StringRef Comdat::getName ( ) const

◆ getSelectionKind()

SelectionKind llvm::Comdat::getSelectionKind ( ) const
inline

◆ print()

void Comdat::print ( raw_ostream OS,
bool  IsForDebug = false 
) const

◆ setSelectionKind()

void llvm::Comdat::setSelectionKind ( SelectionKind  Val)
inline

Friends And Related Function Documentation

◆ Module

friend class Module
friend

Definition at line 52 of file Comdat.h.


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