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 | 2491664d4979d33da2b90fc471cab2287c863e59 (patch) | |
| tree | dfdd27897ed9162bc4161f6d13b404a0f4c129f4 /lib/ExecutionEngine | |
| parent | 75fc819257b9dc7571fad49f3d15286b1d5bef9b (diff) | |
| download | external_llvm-2491664d4979d33da2b90fc471cab2287c863e59.zip external_llvm-2491664d4979d33da2b90fc471cab2287c863e59.tar.gz external_llvm-2491664d4979d33da2b90fc471cab2287c863e59.tar.bz2 | |
Fix -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
| -rw-r--r-- | lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp b/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp index 68471bd..749a57d 100644 --- a/lib/ExecutionEngine/JIT/JITDebugRegisterer.cpp +++ b/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. |
