diff options
Diffstat (limited to 'lib/compilers/ptxas.js')
-rw-r--r-- | lib/compilers/ptxas.js | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lib/compilers/ptxas.js b/lib/compilers/ptxas.js index 7a5361a75..b66ab577a 100644 --- a/lib/compilers/ptxas.js +++ b/lib/compilers/ptxas.js @@ -21,21 +21,22 @@ // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -'use strict'; -const BaseCompiler = require('../base-compiler'), - AsmParserSass = require('../asm-parser-sass'), - utils = require('../utils'), - path = require('path'), - argumentParsers = require('./argument-parsers'); +import path from 'path'; -class PtxAssembler extends BaseCompiler { +import { SassAsmParser } from '../asm-parser-sass'; +import { BaseCompiler } from '../base-compiler'; +import * as utils from '../utils'; + +import { BaseParser } from './argument-parsers'; + +export class PtxAssembler extends BaseCompiler { static get key() { return 'ptxas'; } constructor(info, env) { super(info, env); this.compileFilename = 'example.ptxas'; - this.asm = new AsmParserSass(); + this.asm = new SassAsmParser(); } parsePtxOutput(lines, inputFilename, pathPrefix) { @@ -74,7 +75,7 @@ class PtxAssembler extends BaseCompiler { } getArgumentParser() { - return argumentParsers.Base; + return BaseParser; } optionsForFilter(filters) { @@ -118,5 +119,3 @@ class PtxAssembler extends BaseCompiler { return result; } } - -module.exports = PtxAssembler; |