@@ -87,25 +87,19 @@ function LLVMAddTargetLibraryInfoByTriple(Triple, PM::LLVMPassManagerRef)
87
87
end
88
88
89
89
if VERSION < v " 1.2.0-DEV.531"
90
-
91
90
function LLVMAddNVVMReflectPass (PM:: LLVMPassManagerRef , smversion)
92
91
@apicall (:LLVMExtraAddMVVMReflectPass ,Cvoid,(LLVMPassManagerRef,), PM)
93
92
end
94
-
95
93
else
96
94
97
95
if libllvm_version < v " 8.0"
98
-
99
- function LLVMAddNVVMReflectPass (PM:: LLVMPassManagerRef , smversion)
100
- @apicall (:LLVMExtraAddNVVMReflectPass ,Cvoid,(LLVMPassManagerRef,), PM)
101
- end
102
-
96
+ function LLVMAddNVVMReflectPass (PM:: LLVMPassManagerRef , smversion)
97
+ @apicall (:LLVMExtraAddNVVMReflectPass ,Cvoid,(LLVMPassManagerRef,), PM)
98
+ end
103
99
else
104
-
105
- function LLVMAddNVVMReflectPass (PM:: LLVMPassManagerRef , smversion)
106
- @apicall (:LLVMExtraAddNVVMReflectFunctionPass ,Cvoid,(LLVMPassManagerRef, Cuint), PM, smversion)
107
- end
108
-
100
+ function LLVMAddNVVMReflectPass (PM:: LLVMPassManagerRef , smversion)
101
+ @apicall (:LLVMExtraAddNVVMReflectFunctionPass ,Cvoid,(LLVMPassManagerRef, Cuint), PM, smversion)
102
+ end
109
103
end
110
104
111
105
function LLVMAddAllocOptPass (PM:: LLVMPassManagerRef )
@@ -151,23 +145,25 @@ end
151
145
end
152
146
153
147
if VERSION >= v " 1.3.0-DEV.95"
154
-
155
148
function LLVMAddFinalLowerGCPass (PM:: LLVMPassManagerRef )
156
149
@apicall (:LLVMExtraAddFinalLowerGCPass ,Cvoid,(LLVMPassManagerRef,), PM)
157
150
end
151
+ end
158
152
159
- end # v"1.3.0-DEV.95"
153
+ if VERSION >= v " 1.5.0-DEV.802"
154
+ function LLVMAddRemoveJuliaAddrspacesPass (PM:: LLVMPassManagerRef )
155
+ @apicall (:LLVMExtraAddRemoveJuliaAddrspacesPass ,Cvoid,(LLVMPassManagerRef,), PM)
156
+ end
157
+ end
160
158
161
159
function LLVMGetValueContext (V:: LLVMValueRef )
162
160
@apicall (:LLVMExtraGetValueContext ,LLVMContextRef,(LLVMValueRef,),V)
163
161
end
164
162
165
163
if VERSION >= v " 0.7.0-alpha.37"
166
-
167
164
function LLVMGetSourceLocation (V:: LLVMValueRef , index, Name, Filename, Line, Column)
168
165
@apicall (:LLVMExtraGetSourceLocation ,Cint,(LLVMValueRef,Cint,Ptr{Cstring},Ptr{Cstring},Ptr{Cuint},Ptr{Cuint}), V, index, Name, Filename, Line, Column)
169
166
end
170
-
171
167
end
172
168
173
169
if libllvm_version >= v " 8.0"
0 commit comments