aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 4d6ae564..668eb56b 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -290,6 +290,12 @@ function parseLLVMSegment(segment) {
ident: segment[0].text,
type: isType(segment[0].text) ? segment[0].text : '?',
};
+ } else if (segment[1].type == '{') {
+ return {
+ intertype: 'structvalue',
+ values: splitTokenList(segment[1].tokens).map(parseLLVMSegment),
+ type: segment[0].text,
+ };
} else if (segment[0].text in PARSABLE_LLVM_FUNCTIONS) {
return parseLLVMFunctionCall([{text: '?'}].concat(segment));
} else if (segment[1].text in PARSABLE_LLVM_FUNCTIONS) {