aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/llvm-mca.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/llvm-mca.js
parentbac07fea6d2d4ed5fb7070c51e4cf3e56e3c155a (diff)
downloadcompiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.tar.gz
compiler-explorer-044dcfbf8885d0115e64cf75f74a0f40f54e2370.zip
Use ES6 Modules (#2132)
Diffstat (limited to 'lib/compilers/llvm-mca.js')
-rw-r--r--lib/compilers/llvm-mca.js11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/compilers/llvm-mca.js b/lib/compilers/llvm-mca.js
index 26459731c..d320352a4 100644
--- a/lib/compilers/llvm-mca.js
+++ b/lib/compilers/llvm-mca.js
@@ -22,11 +22,11 @@
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
-const AnalysisTool = require('./analysis-tool'),
- argumentParsers = require('./argument-parsers');
+import { AnalysisTool } from './analysis-tool';
+import { ClangParser } from './argument-parsers';
// Plain compiler, which just runs the tool and returns whatever the output was
-class LLVMmcaTool extends AnalysisTool {
+export class LLVMmcaTool extends AnalysisTool {
static get key() { return 'llvm-mca'; }
supportsObjdump() { return false; }
@@ -44,9 +44,6 @@ class LLVMmcaTool extends AnalysisTool {
}
getArgumentParser() {
- return argumentParsers.Clang;
+ return ClangParser;
}
}
-
-
-module.exports = LLVMmcaTool;