aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-28 08:14:54 +0000
committerChris Lattner <sabre@nondot.org>2009-12-28 08:14:54 +0000
commit1b6d97fc4c928282cfeac752ceac81603176a641 (patch)
tree37a897c8205102647e0bee06c8b26d2706dc723d /lib/VMCore/AsmWriter.cpp
parent17ee03dd1ebbc3fbe63c4106c9a7a647641aabd7 (diff)
downloadexternal_llvm-1b6d97fc4c928282cfeac752ceac81603176a641.zip
external_llvm-1b6d97fc4c928282cfeac752ceac81603176a641.tar.gz
external_llvm-1b6d97fc4c928282cfeac752ceac81603176a641.tar.bz2
change the strange MetadataContext::getMDs function to expose less
irrelevant internal implementation details to clients. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 13905ea..4ef57fe 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -681,7 +681,7 @@ void SlotTracker::processFunction() {
ST_DEBUG("Inserting Instructions:\n");
MetadataContext &TheMetadata = TheFunction->getContext().getMetadata();
- typedef SmallVector<std::pair<unsigned, TrackingVH<MDNode> >, 2> MDMapTy;
+ typedef SmallVector<std::pair<unsigned, MDNode*>, 2> MDMapTy;
MDMapTy MDs;
// Add all of the basic blocks and instructions with no names.
@@ -2085,7 +2085,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
// Print Metadata info
if (!MDNames.empty()) {
MetadataContext &TheMetadata = I.getContext().getMetadata();
- typedef SmallVector<std::pair<unsigned, TrackingVH<MDNode> >, 2> MDMapTy;
+ typedef SmallVector<std::pair<unsigned, MDNode*>, 2> MDMapTy;
MDMapTy MDs;
TheMetadata.getMDs(&I, MDs);
for (MDMapTy::const_iterator MI = MDs.begin(), ME = MDs.end(); MI != ME;