Skip to content

Commit d4e1df4

Browse files
committed
Fix formatting
1 parent da43827 commit d4e1df4

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Sources/WasmKit/Execution/Debugger.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
precondition(function.handle.isWasm)
4242

4343
switch function.handle.wasm.code {
44-
case .debuggable(let wasm, _):
45-
return wasm.originalAddress
46-
case .uncompiled:
47-
try function.handle.wasm.ensureCompiled(store: StoreRef(self.store))
48-
return try self.originalAddress(function: function)
49-
case .compiled:
50-
print(function.handle.wasm.code)
51-
fatalError()
44+
case .debuggable(let wasm, _):
45+
return wasm.originalAddress
46+
case .uncompiled:
47+
try function.handle.wasm.ensureCompiled(store: StoreRef(self.store))
48+
return try self.originalAddress(function: function)
49+
case .compiled:
50+
print(function.handle.wasm.code)
51+
fatalError()
5252
}
5353
}
5454

Sources/WasmKit/Translator.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,11 +1114,11 @@ struct InstructionTranslator: InstructionVisitor {
11141114

11151115
private mutating func updateInstructionMapping() {
11161116
// This is a hot path, so best to exclude the code altogether if the trait isn't enabled.
1117-
#if WasmDebuggingSupport
1118-
guard self.module.isDebuggable else { return }
1117+
#if WasmDebuggingSupport
1118+
guard self.module.isDebuggable else { return }
11191119

1120-
self.iSeqToWasmMapping[self.iseqBuilder.insertingPC.offsetFromHead] = self.binaryOffset
1121-
#endif
1120+
self.iSeqToWasmMapping[self.iseqBuilder.insertingPC.offsetFromHead] = self.binaryOffset
1121+
#endif
11221122
}
11231123

11241124
// MARK: Main entry point

Sources/WasmParser/WasmTypes.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ public struct Code {
1515
@usableFromInline
1616
internal let features: WasmFeatureSet
1717

18-
#if WasmDebuggingSupport
19-
package var originalAddress: Int { self.offset }
20-
#endif
18+
#if WasmDebuggingSupport
19+
package var originalAddress: Int { self.offset }
20+
#endif
2121

2222
@inlinable
2323
init(locals: [ValueType], expression: ArraySlice<UInt8>, offset: Int, features: WasmFeatureSet) {

0 commit comments

Comments
 (0)