mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-02 05:19:47 -06:00
Integrate demangler type
This commit is contained in:
@@ -60,7 +60,7 @@ import * as cfg from './cfg';
|
||||
import {CompilationEnvironment} from './compilation-env';
|
||||
import {CompilerArguments} from './compiler-arguments';
|
||||
import {ClangParser, GCCParser} from './compilers/argument-parsers';
|
||||
import {getDemanglerTypeByKey} from './demangler';
|
||||
import {BaseDemangler, getDemanglerTypeByKey} from './demangler';
|
||||
import {LLVMIRDemangler} from './demangler/llvm';
|
||||
import * as exec from './exec';
|
||||
import {getExternalParserByKey} from './external-parsers';
|
||||
@@ -99,7 +99,7 @@ export class BaseCompiler implements ICompiler {
|
||||
protected toolchainPath: any;
|
||||
public possibleArguments: CompilerArguments;
|
||||
protected possibleTools: ITool[];
|
||||
protected demanglerClass: any; // TODO(jeremy-rifkin): Will be able to do better once #4607 lands
|
||||
protected demanglerClass: typeof BaseDemangler | null = null; // TODO(jeremy-rifkin): Will be able to do better once #4607 lands
|
||||
protected objdumperClass: any;
|
||||
public outputFilebase: string;
|
||||
protected mtime: Date | null = null;
|
||||
|
||||
@@ -63,7 +63,8 @@ export class FPCCompiler extends BaseCompiler {
|
||||
}
|
||||
|
||||
override processAsm(result, filters) {
|
||||
this.demangler = new this.demanglerClass(null, this);
|
||||
// TODO: Pascal doesn't have a demangler exe, it's the only compiler that's weird like this
|
||||
this.demangler = new (unwrap(this.demanglerClass))(null as any, this);
|
||||
return this.asm.process(result.asm, filters);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user