aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/wine-vc.js
diff options
context:
space:
mode:
authorAustin Morton <apmorton@users.noreply.github.com>2020-09-26 16:59:26 -0400
committerGitHub <noreply@github.com>2020-09-26 16:59:26 -0400
commit044dcfbf8885d0115e64cf75f74a0f40f54e2370 (patch)
tree1dcc3e27139600d8e85004dc2a840bb420ccc835 /lib/compilers/wine-vc.js
parentbac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff)
downloadcompiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz
compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/wine-vc.js')
-rw-r--r--lib/compilers/wine-vc.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/compilers/wine-vc.js b/lib/compilers/wine-vc.js
index 16cb02a63..2e77a713b 100644
--- a/lib/compilers/wine-vc.js
+++ b/lib/compilers/wine-vc.js
@@ -22,20 +22,22 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-const BaseCompiler = require('../base-compiler'),
- AsmParser = require('../asm-parser-vc'),
- argumentParsers = require('./argument-parsers'),
- path = require('path'),
- PELabelReconstructor = require('../pe32-support').labelReconstructor,
- MapFileReaderVS = require('../map-file-vs').MapFileReader;
-
-class WineVcCompiler extends BaseCompiler {
+import path from 'path';
+
+import { VcAsmParser } from '../asm-parser-vc';
+import { BaseCompiler } from '../base-compiler';
+import { MapFileReaderVS } from '../map-file-vs';
+import { PELabelReconstructor } from '../pe32-support';
+
+import { VCParser } from './argument-parsers';
+
+export class WineVcCompiler extends BaseCompiler {
static get key() { return 'wine-vc'; }
constructor(info, env) {
info.supportsFiltersInBinary = true;
super(info, env);
- this.asm = new AsmParser();
+ this.asm = new VcAsmParser();
}
filename(fn) {
@@ -53,7 +55,7 @@ class WineVcCompiler extends BaseCompiler {
}
getArgumentParser() {
- return argumentParsers.VC;
+ return VCParser;
}
getExecutableFilename(dirPath, outputFilebase) {
@@ -111,5 +113,3 @@ class WineVcCompiler extends BaseCompiler {
}
}
}
-
-module.exports = WineVcCompiler;