aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/dmd.js2
-rw-r--r--lib/compilers/opt.js3
-rw-r--r--lib/compilers/swift.js2
3 files changed, 3 insertions, 4 deletions
diff --git a/lib/compilers/dmd.js b/lib/compilers/dmd.js
index 2f8931170..a4cdcfd46 100644
--- a/lib/compilers/dmd.js
+++ b/lib/compilers/dmd.js
@@ -42,7 +42,7 @@ class DMDCompiler extends BaseCompiler {
}
getOutputFilename(dirPath, outputFilebase) {
- return path.join(dirPath, `${outputFilebase}.s`); // NB keep lower case as ldc compiler `tolower`s the output name
+ return path.join(dirPath, `${outputFilebase}.s`);
}
objdump(outputFilename, result, maxSize, intelAsm, demangle) {
diff --git a/lib/compilers/opt.js b/lib/compilers/opt.js
index 5098ca985..c34a28a4c 100644
--- a/lib/compilers/opt.js
+++ b/lib/compilers/opt.js
@@ -30,8 +30,7 @@ class OptCompiler extends BaseCompiler {
}
optionsForFilter(filters, outputFilename) {
- let options = ['-o', this.filename(outputFilename), '-S'];
- return options;
+ return ['-o', this.filename(outputFilename), '-S'];
}
}
diff --git a/lib/compilers/swift.js b/lib/compilers/swift.js
index 6c032f84f..145e7844b 100644
--- a/lib/compilers/swift.js
+++ b/lib/compilers/swift.js
@@ -30,7 +30,7 @@ class SwiftCompiler extends BaseCompiler {
result.asm = postResult.stdout;
// Seems swift-demangle likes to exit with error 1
if (postResult.code !== 0 && !result.asm) {
- result.asm = "<Error during post processing: " + postResult.code + ">";
+ result.asm = `<Error during post processing: ${postResult.code}>`;
logger.error("Error during post-processing", result);
}
return result;