mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-04 06:26:28 +00:00
Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -80,7 +80,7 @@ std::string JITDebugRegisterer::MakeELF(const Function *F, DebugInfo &I) {
|
||||
|
||||
// Copy the binary into the .text section. This isn't necessary, but it's
|
||||
// useful to be able to disassemble the ELF by hand.
|
||||
ELFSection &Text = EW.getTextSection((Function *)F);
|
||||
ELFSection &Text = EW.getTextSection(const_cast<Function *>(F));
|
||||
Text.Addr = (uint64_t)I.FnStart;
|
||||
// TODO: We could eliminate this copy if we somehow used a pointer/size pair
|
||||
// instead of a vector.
|
||||
|
Reference in New Issue
Block a user