mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 23:20:54 +00:00
llvm-c: expose unnamedaddr field of globals
Patch by Manuel Jacob. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203482 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7806d2c9af
commit
b7dec2139c
@ -1688,6 +1688,8 @@ LLVMVisibility LLVMGetVisibility(LLVMValueRef Global);
|
||||
void LLVMSetVisibility(LLVMValueRef Global, LLVMVisibility Viz);
|
||||
LLVMDLLStorageClass LLVMGetDLLStorageClass(LLVMValueRef Global);
|
||||
void LLVMSetDLLStorageClass(LLVMValueRef Global, LLVMDLLStorageClass Class);
|
||||
LLVMBool LLVMHasUnnamedAddr(LLVMValueRef Global);
|
||||
void LLVMSetUnnamedAddr(LLVMValueRef Global, LLVMBool HasUnnamedAddr);
|
||||
|
||||
/**
|
||||
* @defgroup LLVMCCoreValueWithAlignment Values with alignment
|
||||
|
@ -1262,6 +1262,14 @@ void LLVMSetDLLStorageClass(LLVMValueRef Global, LLVMDLLStorageClass Class) {
|
||||
static_cast<GlobalValue::DLLStorageClassTypes>(Class));
|
||||
}
|
||||
|
||||
LLVMBool LLVMHasUnnamedAddr(LLVMValueRef Global) {
|
||||
return unwrap<GlobalValue>(Global)->hasUnnamedAddr();
|
||||
}
|
||||
|
||||
void LLVMSetUnnamedAddr(LLVMValueRef Global, LLVMBool HasUnnamedAddr) {
|
||||
unwrap<GlobalValue>(Global)->setUnnamedAddr(HasUnnamedAddr);
|
||||
}
|
||||
|
||||
/*--.. Operations on global variables, load and store instructions .........--*/
|
||||
|
||||
unsigned LLVMGetAlignment(LLVMValueRef V) {
|
||||
|
Loading…
Reference in New Issue
Block a user