Skip to content

Commit bf96e21

Browse files
committed
Whitespace.
1 parent 9914514 commit bf96e21

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/core/metadata.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const MDString = MetadataAsValue
1212

1313
MDString(val::String) = MDString(API.LLVMMDString(val, Cuint(length(val))))
1414

15-
MDString(val::String, ctx::Context) =
15+
MDString(val::String, ctx::Context) =
1616
MDString(API.LLVMMDStringInContext(ref(ctx), val, Cuint(length(val))))
1717

1818
function Base.convert(::Type{String}, md::MDString)
@@ -39,6 +39,7 @@ function operands(md::MDNode)
3939
return Value[Value(op) for op in ops]
4040
end
4141

42+
4243
@checked struct Metadata
4344
ref::API.LLVMMetadataRef
4445
end
@@ -49,4 +50,4 @@ end
4950

5051
function Metadata(val::Value)
5152
return Metadata(LLVM.API.LLVMValueAsMetadata(ref(val)))
52-
end
53+
end

src/core/module.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,4 @@ end
180180
# flags
181181
if libllvm_version >= v"8.0.0"
182182
addflag!(mod::Module, behavior, key, val) = LLVM.API.LLVMAddModuleFlag(ref(mod), behavior, key, length(key), LLVM.ref(Metadata(val)))
183-
184-
end
183+
end

src/debuginfo.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ DEBUG_METADATA_VERSION() = API.LLVMDebugMetadataVersion()
55
strip_debuginfo!(mod::Module) = API.LLVMStripModuleDebugInfo(ref(mod))
66

77
if libllvm_version >= v"8.0.0"
8-
98
set_subprogram!(func::Function, sp::Metadata) = LLVM.API.LLVMSetSubprogram(ref(func), ref(sp))
109
get_subprogram(func::Function) = Metadata(LLVM.API.LLVMGetSubprogram(ref(func)))
11-
12-
end
10+
end

0 commit comments

Comments
 (0)