mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
[Object] keep trailing '\0' out of StringRef when parsing mach-o bindings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1957,9 +1957,9 @@ void MachOBindEntry::moveNext() {
|
|||||||
while (*Ptr) {
|
while (*Ptr) {
|
||||||
++Ptr;
|
++Ptr;
|
||||||
}
|
}
|
||||||
++Ptr;
|
|
||||||
SymbolName = StringRef(reinterpret_cast<const char*>(SymStart),
|
SymbolName = StringRef(reinterpret_cast<const char*>(SymStart),
|
||||||
Ptr-SymStart);
|
Ptr-SymStart);
|
||||||
|
++Ptr;
|
||||||
DEBUG_WITH_TYPE(
|
DEBUG_WITH_TYPE(
|
||||||
"mach-o-bind",
|
"mach-o-bind",
|
||||||
llvm::dbgs() << "BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: "
|
llvm::dbgs() << "BIND_OPCODE_SET_SYMBOL_TRAILING_FLAGS_IMM: "
|
||||||
|
Reference in New Issue
Block a user