aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Error.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-06 23:17:42 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-06 23:17:42 +0000
commit3fb77686c1d63cb3ef0322bed341c67e10d1d88b (patch)
tree959ec194b11c15024e52d4161641e1231ada2c5a /llvm/lib/Object/Error.cpp
parenta11903215f0920e790316ed3d0bb71b9a681646c (diff)
downloadllvm-3fb77686c1d63cb3ef0322bed341c67e10d1d88b.zip
llvm-3fb77686c1d63cb3ef0322bed341c67e10d1d88b.tar.gz
llvm-3fb77686c1d63cb3ef0322bed341c67e10d1d88b.tar.bz2
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 llvm-svn: 244295
Diffstat (limited to 'llvm/lib/Object/Error.cpp')
0 files changed, 0 insertions, 0 deletions