summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/ClangASTImporter.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-03-27 01:48:02 +0000
committerGreg Clayton <gclayton@apple.com>2013-03-27 01:48:02 +0000
commitd00294483e77932bf5b9cf46262759554373ef79 (patch)
tree93d1831ec2b64ed31eb399c2b41f4193a1fdbe84 /lldb/source/Symbol/ClangASTImporter.cpp
parent84912d7e6c3943d21438b7bba5d714437b5bf20f (diff)
downloadbcm5719-llvm-d00294483e77932bf5b9cf46262759554373ef79.tar.gz
bcm5719-llvm-d00294483e77932bf5b9cf46262759554373ef79.zip
Don't use a "uintptr_t" for the metadata key, use a "void *". This removes all of the casts that were being used and cleans the code up a bit. Also added the ability to dump the metadata.
llvm-svn: 178113
Diffstat (limited to 'lldb/source/Symbol/ClangASTImporter.cpp')
-rw-r--r--lldb/source/Symbol/ClangASTImporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Symbol/ClangASTImporter.cpp b/lldb/source/Symbol/ClangASTImporter.cpp
index f7527d1cb65..57e5b216f62 100644
--- a/lldb/source/Symbol/ClangASTImporter.cpp
+++ b/lldb/source/Symbol/ClangASTImporter.cpp
@@ -337,9 +337,9 @@ ClangASTImporter::GetDeclMetadata (const clang::Decl *decl)
DeclOrigin decl_origin = GetDeclOrigin(decl);
if (decl_origin.Valid())
- return ClangASTContext::GetMetadata(decl_origin.ctx, (uintptr_t)decl_origin.decl);
+ return ClangASTContext::GetMetadata(decl_origin.ctx, decl_origin.decl);
else
- return ClangASTContext::GetMetadata(&decl->getASTContext(), (uintptr_t)decl);
+ return ClangASTContext::GetMetadata(&decl->getASTContext(), decl);
}
ClangASTImporter::DeclOrigin
OpenPOWER on IntegriCloud