File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export GlobalValue,
151
151
unnamed_addr, unnamed_addr!,
152
152
alignment, alignment!
153
153
154
- parent (val:: GlobalValue ) = LLVM . Module (API. LLVMGetGlobalParent (ref (val)))
154
+ parent (val:: GlobalValue ) = Module (API. LLVMGetGlobalParent (ref (val)))
155
155
156
156
isdeclaration (val:: GlobalValue ) = convert (Core. Bool, API. LLVMIsDeclaration (ref (val)))
157
157
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export ModulePass
16
16
17
17
function ModulePass (name:: String , runner:: Core.Function )
18
18
function callback (ptr:: Ptr{Cvoid} ):: Core.Bool
19
- mod = LLVM . Module (convert (reftype (Module), ptr))
19
+ mod = Module (convert (reftype (Module), ptr))
20
20
return runner (mod):: Core.Bool
21
21
end
22
22
@@ -38,7 +38,7 @@ export FunctionPass
38
38
39
39
function FunctionPass (name:: String , runner:: Core.Function )
40
40
function callback (ptr:: Ptr{Cvoid} ):: Core.Bool
41
- fn = LLVM . Function (convert (reftype (Function), ptr))
41
+ fn = Function (convert (reftype (Function), ptr))
42
42
return runner (fn):: Core.Bool
43
43
end
44
44
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ function ModulePassManager(f::Core.Function, args...)
32
32
end
33
33
34
34
run! (mpm:: ModulePassManager , mod:: Module ) =
35
- LLVM . convert (Core. Bool, API. LLVMRunPassManager (ref (mpm), ref (mod)))
35
+ convert (Core. Bool, API. LLVMRunPassManager (ref (mpm), ref (mod)))
36
36
37
37
38
38
@@ -65,4 +65,4 @@ finalize!(fpm::FunctionPassManager) =
65
65
convert (Core. Bool, API. LLVMFinalizeFunctionPassManager (ref (fpm)))
66
66
67
67
run! (fpm:: FunctionPassManager , f:: Function ) =
68
- LLVM . convert (Core. Bool, API. LLVMRunFunctionPassManager (ref (fpm), ref (f)))
68
+ convert (Core. Bool, API. LLVMRunFunctionPassManager (ref (fpm), ref (f)))
You can’t perform that action at this time.
0 commit comments