llvm.org GIT mirror llvm / f25ae44
[LLVM-C] Expand LLVMRelocMode Summary: Add read[only|write] PIC relocation models to the C API and teach the TargetMachine API about it. Reviewers: whitequark, deadalnix Reviewed By: whitequark Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D56187 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350279 91177308-0d34-0410-b5e6-96231b3b80d8 Robert Widmann 8 months ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838 LLVMRelocDefault,
3939 LLVMRelocStatic,
4040 LLVMRelocPIC,
41 LLVMRelocDynamicNoPic
41 LLVMRelocDynamicNoPic,
42 LLVMRelocROPI,
43 LLVMRelocRWPI,
44 LLVMRelocROPI_RWPI
4245 } LLVMRelocMode;
4346
4447 typedef enum {
114114 case LLVMRelocDynamicNoPic:
115115 RM = Reloc::DynamicNoPIC;
116116 break;
117 case LLVMRelocROPI:
118 RM = Reloc::ROPI;
119 break;
120 case LLVMRelocRWPI:
121 RM = Reloc::RWPI;
122 break;
123 case LLVMRelocROPI_RWPI:
124 RM = Reloc::ROPI_RWPI;
125 break;
117126 default:
118127 break;
119128 }