diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-03-08 00:37:07 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-03-08 00:37:07 +0000 |
commit | dafed5d7d82613ca153c1bee70addb17d6d20c3a (patch) | |
tree | 55eff0c029daa02615e5e18769ebe0bcf26f990c /llvm/lib/AsmParser/LLParser.h | |
parent | b1bd398ceb5bead0251ec0f40ba5db0177e4a2df (diff) | |
download | bcm5719-llvm-dafed5d7d82613ca153c1bee70addb17d6d20c3a.tar.gz bcm5719-llvm-dafed5d7d82613ca153c1bee70addb17d6d20c3a.zip |
[AsmParser] Expose an API to parse a string starting with a type.
Without actually parsing a type it is difficult to perdict where
the type definition ends. In other words, instead of expecting
the user of the parser API to hand over only the relevant bits
of the string being parsed, take the whole string, parse the type,
and get back the number of characters that have been read.
This will be used by the MIR testing infrastructure.
llvm-svn: 262884
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index 4128fa367f5..96f864a7f1a 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -148,7 +148,8 @@ namespace llvm { bool parseStandaloneConstantValue(Constant *&C, const SlotMapping *Slots); - bool parseStandaloneType(Type *&Ty, const SlotMapping *Slots); + bool parseTypeAtBeginning(Type *&Ty, unsigned &Read, + const SlotMapping *Slots); LLVMContext &getContext() { return Context; } |