aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2016-04-27 18:35:02 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2016-04-27 18:35:02 +0000
commit41beee6575f98a3190d072583788d39cbdbe25f2 (patch)
treea7090ea6097f6c7a35ee46b04e0e6426dc77ac35 /llvm/lib/LTO/ThinLTOCodeGenerator.cpp
parent03e1647d19647e6c45688f791e26d7a09b62577c (diff)
downloadllvm-41beee6575f98a3190d072583788d39cbdbe25f2.zip
llvm-41beee6575f98a3190d072583788d39cbdbe25f2.tar.gz
llvm-41beee6575f98a3190d072583788d39cbdbe25f2.tar.bz2
Clean up to avoid compiler warnings for casting away const qualifiers.
Differential Revision: http://reviews.llvm.org/D19598 llvm-svn: 267753
Diffstat (limited to 'llvm/lib/LTO/ThinLTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/ThinLTOCodeGenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
index f443008..1f1c1b6 100644
--- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
@@ -457,9 +457,9 @@ public:
// Include the hash for the resolved ODR.
for (auto &Entry : ResolvedODR) {
- Hasher.update(ArrayRef<uint8_t>((uint8_t *)&Entry.first,
+ Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&Entry.first,
sizeof(GlobalValue::GUID)));
- Hasher.update(ArrayRef<uint8_t>((uint8_t *)&Entry.second,
+ Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&Entry.second,
sizeof(GlobalValue::LinkageTypes)));
}
@@ -467,7 +467,7 @@ public:
for (auto &Entry : PreservedSymbols) {
if (DefinedFunctions.count(Entry))
Hasher.update(
- ArrayRef<uint8_t>((uint8_t *)&Entry, sizeof(GlobalValue::GUID)));
+ ArrayRef<uint8_t>((const uint8_t *)&Entry, sizeof(GlobalValue::GUID)));
}
sys::path::append(EntryPath, CachePath, toHex(Hasher.result()));