summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-10-31 18:23:21 +0000
committerTed Kremenek <kremenek@apple.com>2007-10-31 18:23:21 +0000
commite119266c19c97ab5128aa9c563b9db60a2a220c2 (patch)
tree35aca8424c007d6a979eb23db19a068c41bccb4a /llvm/lib/Bitcode
parentd2f7cc9f2bc83520995405c1527dc927257ab828 (diff)
downloadbcm5719-llvm-e119266c19c97ab5128aa9c563b9db60a2a220c2.tar.gz
bcm5719-llvm-e119266c19c97ab5128aa9c563b9db60a2a220c2.zip
Added Serializer::EmitRef to deal with emitting arbitrary references.
Modified Serializer::EmitPtr to handle const pointers. llvm-svn: 43565
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/Serialize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/Serialize.cpp b/llvm/lib/Bitcode/Writer/Serialize.cpp
index a1d732047a6..58baf104c7a 100644
--- a/llvm/lib/Bitcode/Writer/Serialize.cpp
+++ b/llvm/lib/Bitcode/Writer/Serialize.cpp
@@ -57,7 +57,7 @@ void Serializer::EmitCStr(const char* s) {
EmitCStr(s,s+strlen(s));
}
-unsigned Serializer::getPtrId(void* ptr) {
+unsigned Serializer::getPtrId(const void* ptr) {
if (!ptr)
return 0;
OpenPOWER on IntegriCloud