aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/argument-parsers.js
diff options
context:
space:
mode:
authorRabsRincon <rubrinbla@gmail.com>2018-07-29 01:35:16 +0200
committerAndre Meyering <info@andremeyering.de>2018-11-28 14:29:10 +0100
commite32d084a8e9e9785c6170206bcec3e77a735440d (patch)
tree2c503a40faeb444e0b87a73f6d2078b5ea39ad74 /lib/compilers/argument-parsers.js
parentc34fa3f46e2121ad340d3587586101ac2f9376b8 (diff)
downloadcompiler-explorer-e32d084a8e9e9785c6170206bcec3e77a735440d.tar.gz
compiler-explorer-e32d084a8e9e9785c6170206bcec3e77a735440d.zip
[LLVM] Add LLVM IR view
- commit by @RabsRincon
Diffstat (limited to 'lib/compilers/argument-parsers.js')
-rw-r--r--lib/compilers/argument-parsers.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/compilers/argument-parsers.js b/lib/compilers/argument-parsers.js
index b3fbcfe32..56b5a40cc 100644
--- a/lib/compilers/argument-parsers.js
+++ b/lib/compilers/argument-parsers.js
@@ -86,6 +86,10 @@ class ClangParser extends BaseParser {
if (compiler.compiler.options) compiler.compiler.options += " ";
compiler.compiler.options += "-fcolor-diagnostics";
}
+ if (options['-emit-llvm']) {
+ compiler.compiler.supportsIrView = true;
+ compiler.compiler.irArg = ['-Xclang', '-emit-llvm', '-fsyntax-only'];
+ }
return compiler;
});
}