llvm/lib/CodeGen/MIRParser
Alex Lorenz 263d80f920 MIR Parser: Simplify the token's string value handling.
This commit removes the 'StringOffset' and 'HasStringValue' fields from the
MIToken struct and simplifies the 'stringValue' method which now returns
the new 'StringValue' field.

This commit also adopts a different way of initializing the lexed tokens -
instead of constructing a new MIToken instance, the lexer resets the old token
using the new 'reset' method and sets its attributes using the new
'setStringValue', 'setOwnedStringValue', and 'setIntegerValue' methods.

Reviewers: Sean Silva

Differential Revision: http://reviews.llvm.org/D11792


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244295 91177308-0d34-0410-b5e6-96231b3b80d8
2015-08-06 23:17:42 +00:00
..
CMakeLists.txt MIR Serialization: Introduce a lexer for machine instructions. 2015-06-22 20:37:46 +00:00
LLVMBuild.txt MIRParser/LLVMBuild.txt: Add MC for MCRegisterInfo::getDwarfRegNum(). 2015-07-24 01:12:36 +00:00
Makefile
MILexer.cpp MIR Parser: Simplify the token's string value handling. 2015-08-06 23:17:42 +00:00
MILexer.h MIR Parser: Simplify the token's string value handling. 2015-08-06 23:17:42 +00:00
MIParser.cpp MIR Parser: Simplify the token's string value handling. 2015-08-06 23:17:42 +00:00
MIParser.h MIR Serialization: Serialize the unnamed basic block references. 2015-07-27 22:42:41 +00:00
MIRParser.cpp MIR Parser: Report an error when a jump table entry is redefined. 2015-07-31 23:13:23 +00:00