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

Method postProcessAsm

lib/compilers/pascal.ts:85–106  ·  view source on GitHub ↗
(result, filters?: ParseFiltersAndOutputOptions)

Source from the content-addressed store, hash-verified

83 }
84
85 override postProcessAsm(result, filters?: ParseFiltersAndOutputOptions) {
86 if (!result.okToCache) return result;
87
88 if (unwrap(filters).binary) {
89 for (let j = 0; j < result.asm.length; ++j) {
90 this.demangler.addDemangleToCache(result.asm[j].text);
91 }
92 }
93
94 for (let j = 0; j < result.asm.length; ++j) {
95 result.asm[j].text = this.demangler.demangleIfNeeded(result.asm[j].text);
96 if (
97 result.asm[j].source?.file &&
98 !result.asm[j].source.mainsource &&
99 this.isTheSameFileProbably(result.inputFilename, result.asm[j].source.file)
100 ) {
101 result.asm[j].source.mainsource = true;
102 }
103 }
104
105 return result;
106 }
107
108 override optionsForFilter(filters: ParseFiltersAndOutputOptions) {
109 let options = ['-g', '-al'];

Callers

nothing calls this directly

Calls 4

isTheSameFileProbablyMethod · 0.95
addDemangleToCacheMethod · 0.80
demangleIfNeededMethod · 0.80
unwrapFunction · 0.50

Tested by

no test coverage detected