Change SMRange to be half-open (exclusive end) instead of closed (inclusive)
authorJordan Rose <jordan_rose@apple.com>
Mon, 7 Jan 2013 19:00:49 +0000 (19:00 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 7 Jan 2013 19:00:49 +0000 (19:00 +0000)
commit3ebe59c892051375623fea55e977ff559fdb3323
tree57c29e90762855b6aacd9a7341a1db0bcf526be1
parent7aa1c321f00d29fdc84e9a03080853aa25dd06fc
Change SMRange to be half-open (exclusive end) instead of closed (inclusive)

This is necessary not only for representing empty ranges, but for handling
multibyte characters in the input. (If the end pointer in a range refers to
a multibyte character, should it point to the beginning or the end of the
character in a char array?) Some of the code in the asm parsers was already
assuming this anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171765 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/SMLoc.h
include/llvm/Support/YAMLParser.h
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCParser/MCAsmLexer.cpp
lib/Support/SourceMgr.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp