summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-03-07 22:09:05 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-03-07 22:09:05 +0000
commit81e72b4d4ea92d9b6ab0721ef062638d2114a621 (patch)
tree19011b0338d9902da1cb98738df7f389e7026964 /llvm/lib/AsmParser/LLParser.h
parent4e14a497a3c0e0855ff37cc3b80d9a7ae88891ad (diff)
downloadbcm5719-llvm-81e72b4d4ea92d9b6ab0721ef062638d2114a621.tar.gz
bcm5719-llvm-81e72b4d4ea92d9b6ab0721ef062638d2114a621.zip
[AsmParser] Add a function to parse a standalone type.
This is useful for MIR serialization. Indeed generic machine instructions must have a type and we don't want to duplicate the logic in the MIParser. llvm-svn: 262868
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r--llvm/lib/AsmParser/LLParser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h
index f61a5e5e3a3..4128fa367f5 100644
--- a/llvm/lib/AsmParser/LLParser.h
+++ b/llvm/lib/AsmParser/LLParser.h
@@ -148,6 +148,8 @@ namespace llvm {
bool parseStandaloneConstantValue(Constant *&C, const SlotMapping *Slots);
+ bool parseStandaloneType(Type *&Ty, const SlotMapping *Slots);
+
LLVMContext &getContext() { return Context; }
private:
OpenPOWER on IntegriCloud