diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-12-28 11:42:14 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-28 11:42:14 -0600 |
commit | 749319f7912ff479d25d9afb1e751f4ea704b0e2 (patch) | |
tree | 6f1504440fcdaf033dc406d454bb00299b0d8fa6 /lib/compilers/pascal.js | |
parent | b597095f6ee657e6b1fde4b02f9bb2f61457d225 (diff) | |
download | compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.tar.gz compiler-explorer-749319f7912ff479d25d9afb1e751f4ea704b0e2.zip |
Slightly more controversial bumpings (#4503)gh-5552
- latest sentry, tar-stream, which, some yamljs versions
- latest eslint-* stuff
- latest webpack manifest
- Applies all the automatic fixes for newer lint rules
- Bump the webpack version
applies new tslint stuff
Diffstat (limited to 'lib/compilers/pascal.js')
-rw-r--r-- | lib/compilers/pascal.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/compilers/pascal.js b/lib/compilers/pascal.js index c1d48098e..7a8c3cb53 100644 --- a/lib/compilers/pascal.js +++ b/lib/compilers/pascal.js @@ -111,11 +111,11 @@ export class FPCCompiler extends BaseCompiler { const relevantAsmStartsAt = input.indexOf('...', systemInitOffset); if (relevantAsmStartsAt !== -1) { const lastLinefeedBeforeStart = input.lastIndexOf('\n', relevantAsmStartsAt); - if (lastLinefeedBeforeStart !== -1) { + if (lastLinefeedBeforeStart === -1) { + input = input.substr(0, input.indexOf('00000000004')) + '\n' + input.substr(relevantAsmStartsAt); + } else { input = input.substr(0, input.indexOf('00000000004')) + '\n' + input.substr(lastLinefeedBeforeStart + 1); - } else { - input = input.substr(0, input.indexOf('00000000004')) + '\n' + input.substr(relevantAsmStartsAt); } } return input; @@ -214,10 +214,10 @@ export class FPCCompiler extends BaseCompiler { valueInBrackets = valueInBrackets.substr(1); } - if (!isNaN(valueInBrackets)) { - return ` .loc ${currentFileId} ${valueInBrackets} 0`; - } else { + if (isNaN(valueInBrackets)) { return ` .file ${currentFileId} "${valueInBrackets}"`; + } else { + return ` .loc ${currentFileId} ${valueInBrackets} 0`; } } else if (asm.startsWith('.Le')) { return ' .cfi_endproc'; |