LLVM  7.0.0svn
Functions
Comdat.cpp File Reference
#include "llvm-c/Comdat.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Comdat.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/Module.h"
Include dependency graph for Comdat.cpp:

Go to the source code of this file.

Functions

LLVMComdatRef LLVMGetOrInsertComdat (LLVMModuleRef M, const char *Name)
 Return the Comdat in the module with the specified name. More...
 
LLVMComdatRef LLVMGetComdat (LLVMValueRef V)
 Get the Comdat assigned to the given global object. More...
 
void LLVMSetComdat (LLVMValueRef V, LLVMComdatRef C)
 Assign the Comdat to the given global object. More...
 
LLVMComdatSelectionKind LLVMGetComdatSelectionKind (LLVMComdatRef C)
 
void LLVMSetComdatSelectionKind (LLVMComdatRef C, LLVMComdatSelectionKind kind)
 

Function Documentation

◆ LLVMGetComdat()

LLVMComdatRef LLVMGetComdat ( LLVMValueRef  V)

Get the Comdat assigned to the given global object.

See also
llvm::GlobalObject::getComdat()

Definition at line 33 of file Comdat.cpp.

References G, llvm::GlobalObject::getComdat(), and llvm::wrap().

◆ LLVMGetComdatSelectionKind()

LLVMComdatSelectionKind LLVMGetComdatSelectionKind ( LLVMComdatRef  C)

◆ LLVMGetOrInsertComdat()

LLVMComdatRef LLVMGetOrInsertComdat ( LLVMModuleRef  M,
const char Name 
)

Return the Comdat in the module with the specified name.

It is created if it didn't already exist.

See also
llvm::Module::getOrInsertComdat()

Definition at line 29 of file Comdat.cpp.

References llvm::unwrap(), and llvm::wrap().

◆ LLVMSetComdat()

void LLVMSetComdat ( LLVMValueRef  V,
LLVMComdatRef  C 
)

Assign the Comdat to the given global object.

See also
llvm::GlobalObject::setComdat()

Definition at line 38 of file Comdat.cpp.

References G, llvm::GlobalObject::setComdat(), and llvm::unwrap().

◆ LLVMSetComdatSelectionKind()

void LLVMSetComdatSelectionKind ( LLVMComdatRef  C,
LLVMComdatSelectionKind  kind 
)