mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 04:29:48 -06:00
fix: comma dangle
This commit is contained in:
@@ -176,7 +176,7 @@ export class GolangCompiler extends BaseCompiler {
|
||||
collisions: number,
|
||||
ins: string,
|
||||
args: string,
|
||||
usedLabels: Record<string, boolean>,
|
||||
usedLabels: Record<string, boolean>
|
||||
): string {
|
||||
// Check if last argument is a decimal number.
|
||||
const match = args.match(DECIMAL_RE);
|
||||
|
||||
@@ -63,7 +63,7 @@ export class LLVMMOSCompiler extends ClangCompiler {
|
||||
demangle,
|
||||
staticReloc: boolean,
|
||||
dynamicReloc: boolean,
|
||||
filters: ParseFiltersAndOutputOptions,
|
||||
filters: ParseFiltersAndOutputOptions
|
||||
) {
|
||||
if (!outputFilename.endsWith('.elf') && (await utils.fileExists(outputFilename + '.elf'))) {
|
||||
outputFilename = outputFilename + '.elf';
|
||||
@@ -78,7 +78,7 @@ export class LLVMMOSCompiler extends ClangCompiler {
|
||||
demangle,
|
||||
staticReloc,
|
||||
dynamicReloc,
|
||||
filters,
|
||||
filters
|
||||
);
|
||||
|
||||
if (this.compiler.exe.includes('nes')) {
|
||||
|
||||
@@ -325,7 +325,7 @@ export class LlvmPassDumpParser {
|
||||
affectedFunction: fn,
|
||||
machine,
|
||||
lines,
|
||||
}),
|
||||
})
|
||||
);
|
||||
previousFunction = fn;
|
||||
} else {
|
||||
@@ -374,7 +374,7 @@ export class LlvmPassDumpParser {
|
||||
passesMatch(current_dump.header, next_dump.header),
|
||||
'',
|
||||
current_dump.header,
|
||||
next_dump.header,
|
||||
next_dump.header
|
||||
);
|
||||
assert(current_dump.machine === next_dump.machine);
|
||||
pass.name = current_dump.header.slice('IR Dump Before '.length);
|
||||
@@ -474,11 +474,11 @@ export class LlvmPassDumpParser {
|
||||
process(
|
||||
output: ResultLine[],
|
||||
_: ParseFiltersAndOutputOptions,
|
||||
llvmOptPipelineOptions: LLVMOptPipelineBackendOptions,
|
||||
llvmOptPipelineOptions: LLVMOptPipelineBackendOptions
|
||||
) {
|
||||
// Crop out any junk before the pass dumps (e.g. warnings)
|
||||
const ir = output.slice(
|
||||
output.findIndex(line => line.text.match(this.irDumpHeader) || line.text.match(this.machineCodeDumpHeader)),
|
||||
output.findIndex(line => line.text.match(this.irDumpHeader) || line.text.match(this.machineCodeDumpHeader))
|
||||
);
|
||||
const preprocessed_lines = this.applyIrFilters(ir, llvmOptPipelineOptions);
|
||||
return this.breakdownOutput(preprocessed_lines, llvmOptPipelineOptions);
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ export abstract class StorageBase {
|
||||
.then(result => {
|
||||
logger.info(
|
||||
`Unique subhash '${result.uniqueSubHash}' ` +
|
||||
`(${result.alreadyPresent ? 'was already present' : 'newly-created'})`,
|
||||
`(${result.alreadyPresent ? 'was already present' : 'newly-created'})`
|
||||
);
|
||||
if (result.alreadyPresent) {
|
||||
return result;
|
||||
|
||||
@@ -72,7 +72,7 @@ export function extendConfig<
|
||||
vimInUse: settings.useVim,
|
||||
fontLigatures: settings.editorsFLigatures,
|
||||
},
|
||||
overrides,
|
||||
overrides
|
||||
);
|
||||
}
|
||||
return _.extend({}, DEFAULT_MONACO_CONFIG, overrides);
|
||||
|
||||
Reference in New Issue
Block a user