MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / normalizeAsmToString

Function normalizeAsmToString

lib/utils.ts:73–76  ·  view source on GitHub ↗
(asm: string | ParsedAsmResultLine[] | undefined)

Source from the content-addressed store, hash-verified

71 * Handles the union type from CompilationInfo.asm safely.
72 */
73export function normalizeAsmToString(asm: string | ParsedAsmResultLine[] | undefined): string {
74 if (!asm) return '';
75 return typeof asm === 'string' ? asm : extractTextLines(asm).join('\n');
76}
77
78/**
79 * Applies a function to each line of text split by `splitLines`

Callers

nothing calls this directly

Calls 1

extractTextLinesFunction · 0.85

Tested by

no test coverage detected