aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-12 16:03:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-12 16:03:57 -0700
commit877c9486af47c8d9048b584666290c4f2de501fc (patch)
tree1f8b11447ec6f08dfbdf2066cd6a054d9abcec50
parent2595c6c17ce3aa019685558c80b75752eaf52219 (diff)
add warning for not running with -show-annotations
-rw-r--r--src/intertyper.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index 677d9451..226c3703 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -425,6 +425,7 @@ function intertyper(data, parseFunctions, baseLineNum) {
});
}
} else {
+ if (!item.tokens[3]) throw 'Did you run llvm-dis with -show-annotations? (b)';
if (item.tokens[3].text == 'c')
item.tokens.splice(3, 1);
if (item.tokens[3].text in PARSABLE_LLVM_FUNCTIONS) {