llvm.org GIT mirror llvm / b7dec21
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 Tim Northover 5 years ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
16871687 void LLVMSetVisibility(LLVMValueRef Global, LLVMVisibility Viz);
16881688 LLVMDLLStorageClass LLVMGetDLLStorageClass(LLVMValueRef Global);
16891689 void LLVMSetDLLStorageClass(LLVMValueRef Global, LLVMDLLStorageClass Class);
1690 LLVMBool LLVMHasUnnamedAddr(LLVMValueRef Global);
1691 void LLVMSetUnnamedAddr(LLVMValueRef Global, LLVMBool HasUnnamedAddr);
16901692
16911693 /**
16921694 * @defgroup LLVMCCoreValueWithAlignment Values with alignment
12611261 static_cast(Class));
12621262 }
12631263
1264 LLVMBool LLVMHasUnnamedAddr(LLVMValueRef Global) {
1265 return unwrap(Global)->hasUnnamedAddr();
1266 }
1267
1268 void LLVMSetUnnamedAddr(LLVMValueRef Global, LLVMBool HasUnnamedAddr) {
1269 unwrap(Global)->setUnnamedAddr(HasUnnamedAddr);
1270 }
1271
12641272 /*--.. Operations on global variables, load and store instructions .........--*/
12651273
12661274 unsigned LLVMGetAlignment(LLVMValueRef V) {