Created
October 12, 2011 00:57
-
-
Save kripken/1279918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/parseTools.js b/src/parseTools.js | |
index 7d62b34..c90391f 100644 | |
--- a/src/parseTools.js | |
+++ b/src/parseTools.js | |
@@ -405,15 +405,15 @@ function parseLLVMSegment(segment) { | |
function cleanSegment(segment) { | |
while (segment.length >= 2 && ['noalias', 'sret', 'nocapture', 'nest', 'zeroext', 'signext'].indexOf(segment[1].text) != -1) { | |
segment.splice(1, 1); | |
} | |
return segment; | |
} | |
-PARSABLE_LLVM_FUNCTIONS = set('getelementptr', 'bitcast', 'inttoptr', 'ptrtoint', 'mul', 'icmp', 'zext', 'sub', 'add', 'div'); | |
+PARSABLE_LLVM_FUNCTIONS = set('getelementptr', 'bitcast', 'inttoptr', 'ptrtoint', 'mul', 'icmp', 'zext', 'sub', 'add', 'div', 'null'); | |
// Parses a function call of form | |
// TYPE functionname MODIFIERS (...) | |
// e.g. | |
// i32* getelementptr inbounds (...) | |
function parseLLVMFunctionCall(segment) { | |
segment = segment.slice(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment