diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-17 17:42:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-17 17:42:52 +0000 |
commit | 1f0f2142ccc78e7738dc20f13d560665aa22ec6d (patch) | |
tree | c6b467e15c03c3dddacf4b0eef44a09ee047d8bf /llvm/lib/ExecutionEngine | |
parent | 05f34394d9dab6a78bdfa1983de49ab6f56a98c8 (diff) | |
download | bcm5719-llvm-1f0f2142ccc78e7738dc20f13d560665aa22ec6d.tar.gz bcm5719-llvm-1f0f2142ccc78e7738dc20f13d560665aa22ec6d.zip |
Fix -Wcast-qual warnings.
llvm-svn: 101655
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp b/llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp index 68471bd4d5f..749a57d92c9 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp @@ -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. |