mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Fixing more -Wcast-qual warnings; NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221782 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -377,7 +377,8 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
StringRef BytesStr;
|
||||
if (error(Section.getContents(BytesStr)))
|
||||
break;
|
||||
ArrayRef<uint8_t> Bytes((uint8_t *)BytesStr.data(), BytesStr.size());
|
||||
ArrayRef<uint8_t> Bytes(reinterpret_cast<const uint8_t *>(BytesStr.data()),
|
||||
BytesStr.size());
|
||||
|
||||
uint64_t Size;
|
||||
uint64_t Index;
|
||||
@ -411,7 +412,8 @@ static void DisassembleObject(const ObjectFile *Obj, bool InlineRelocs) {
|
||||
outs() << format("%8" PRIx64 ":", SectionAddr + Index);
|
||||
if (!NoShowRawInsn) {
|
||||
outs() << "\t";
|
||||
DumpBytes(StringRef((char *)Bytes.data() + Index, Size));
|
||||
DumpBytes(StringRef(
|
||||
reinterpret_cast<const char *>(Bytes.data()) + Index, Size));
|
||||
}
|
||||
IP->printInst(&Inst, outs(), "");
|
||||
outs() << CommentStream.str();
|
||||
|
Reference in New Issue
Block a user