aboutsummaryrefslogtreecommitdiff
path: root/lib/asm.js
diff options
context:
space:
mode:
authorpartouf <partouf@gmail.com>2017-11-28 21:04:19 +0100
committerpartouf <partouf@gmail.com>2017-11-28 21:04:19 +0100
commitef9ed6d2e4855530cf2f80dae5964a79331a2fc7 (patch)
treefd28b428751f35a6a59530a962ec89492fed93a3 /lib/asm.js
parentfe63adc4bc7fb06c5b88faddd3cca3c38bd0dee4 (diff)
downloadcompiler-explorer-ef9ed6d2e4855530cf2f80dae5964a79331a2fc7.tar.gz
compiler-explorer-ef9ed6d2e4855530cf2f80dae5964a79331a2fc7.zip
if binaryHideFuncRe doesnt have a value, assume everything is a userfunction
Diffstat (limited to 'lib/asm.js')
-rw-r--r--lib/asm.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/asm.js b/lib/asm.js
index 22ca51173..b659137d3 100644
--- a/lib/asm.js
+++ b/lib/asm.js
@@ -233,6 +233,8 @@ function AsmParser(compilerProps) {
var maxAsmLines = 500;
function isUserFunction(func) {
+ if (binaryHideFuncRe === null) return true;
+
return !func.match(binaryHideFuncRe);
}
@@ -300,7 +302,9 @@ function AsmParser(compilerProps) {
}
if (compilerProps) {
- binaryHideFuncRe = new RegExp(compilerProps('binaryHideFuncRe'));
+ var binaryHideFuncReValue = compilerProps('binaryHideFuncRe');
+ if (binaryHideFuncReValue) binaryHideFuncRe = new RegExp(binaryHideFuncReValue);
+
maxAsmLines = compilerProps('maxLinesOfAsm', maxAsmLines);
}
this.process = function (asm, filters) {