diff options
author | RabsRincon <rubrinbla@gmail.com> | 2018-03-24 18:55:03 +0100 |
---|---|---|
committer | RabsRincon <rubrinbla@gmail.com> | 2018-03-24 18:55:03 +0100 |
commit | f502891cde3f7f8ec17d05c6b1a0205c83f50e72 (patch) | |
tree | f3dab3bc6f146ee602ab0bda3540873f8fcc4e36 /lib/compilers/ldc.js | |
parent | 6572d341fe7d5c31b83d95eade4409ef2addef95 (diff) | |
download | compiler-explorer-f502891cde3f7f8ec17d05c6b1a0205c83f50e72.tar.gz compiler-explorer-f502891cde3f7f8ec17d05c6b1a0205c83f50e72.zip |
Revert OPT output changes for LDC
Diffstat (limited to 'lib/compilers/ldc.js')
-rw-r--r-- | lib/compilers/ldc.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/compilers/ldc.js b/lib/compilers/ldc.js index 0ef030d0d..1c050fa23 100644 --- a/lib/compilers/ldc.js +++ b/lib/compilers/ldc.js @@ -24,7 +24,6 @@ const BaseCompiler = require('../base-compiler'), argumentParsers = require("./argument-parsers"), - compilerOptInfo = require("compiler-opt-info"), fs = require('fs-extra'), logger = require('./../logger').logger; @@ -83,20 +82,6 @@ class LDCCompiler extends BaseCompiler { } return fs.readFileSync(astFilename, 'utf-8'); } - - processOptOutput(hasOptOutput, optPath) { - let output = []; - return new Promise(resolve => { - fs.createReadStream(optPath, {encoding: "utf-8"}) - .pipe(new compilerOptInfo.LLVMOptTransformer()) - .on("data", opt => { - if (opt.DebugLoc && opt.DebugLoc.File && opt.DebugLoc.File.indexOf(this.compileFilename) > -1) { - output.push(opt); - } - }) - .on("end", () => resolve(output)); - }); - } } module.exports = LDCCompiler; |