aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-21 17:16:50 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-21 17:16:50 -0800
commit61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (patch)
tree1670bd41f00d7075add1be97e4e08b479e81774e /src
parentf8525825f5bc91dbe631d4d9afb1b18c3a0e5f75 (diff)
do not generate annotations when disassembling bitcode
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 6b46cdbb..d295a872 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -521,13 +521,12 @@ function intertyper(data, sidePass, baseLineNums) {
ret.ctors.push(segment[1].tokens.slice(-1)[0].text);
});
}
- } else {
- if (!item.tokens[3]) throw 'Did you run llvm-dis with -show-annotations? (b)'; // XXX: do we still need annotations?
+ } else if (!external) {
if (item.tokens[3].text == 'c')
item.tokens.splice(3, 1);
if (item.tokens[3].text in PARSABLE_LLVM_FUNCTIONS) {
ret.value = parseLLVMFunctionCall(item.tokens.slice(2));
- } else if (!external) {
+ } else {
ret.value = scanConst(item.tokens[3], ret.type);
}
}