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. llvm-svn: 171765
Showing
- llvm/include/llvm/Support/SMLoc.h 6 additions, 4 deletionsllvm/include/llvm/Support/SMLoc.h
- llvm/include/llvm/Support/YAMLParser.h 1 addition, 1 deletionllvm/include/llvm/Support/YAMLParser.h
- llvm/lib/MC/MCParser/AsmParser.cpp 11 additions, 10 deletionsllvm/lib/MC/MCParser/AsmParser.cpp
- llvm/lib/MC/MCParser/MCAsmLexer.cpp 1 addition, 1 deletionllvm/lib/MC/MCParser/MCAsmLexer.cpp
- llvm/lib/Support/SourceMgr.cpp 1 addition, 1 deletionllvm/lib/Support/SourceMgr.cpp
- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp 90 additions, 82 deletionsllvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
- llvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp 26 additions, 18 deletionsllvm/lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
- llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp 23 additions, 27 deletionsllvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
- llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp 26 additions, 30 deletionsllvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
Loading
Please register or sign in to comment