Update for LLVM API change in r221024
authorEd Maste <emaste@freebsd.org>
Sun, 2 Nov 2014 00:24:22 +0000 (00:24 +0000)
committerEd Maste <emaste@freebsd.org>
Sun, 2 Nov 2014 00:24:22 +0000 (00:24 +0000)
llvm-svn: 221073

lldb/source/Expression/IRDynamicChecks.cpp
lldb/source/Expression/IRForTarget.cpp

index aa5d28b..6ab51ce 100644 (file)
@@ -514,7 +514,7 @@ private:
         {
             // This metadata is set by IRForTarget::MaybeHandleCall().
 
-            MDNode *metadata = call_inst->getMetadata("lldb.call.realName");
+            MDNode *metadata = call_inst->getMDNode("lldb.call.realName");
 
             if (!metadata)
                 return true;
index b91e1b4..fd2aaf8 100644 (file)
@@ -1210,7 +1210,7 @@ IRForTarget::RewritePersistentAlloc (llvm::Instruction *persistent_alloc)
 
     AllocaInst *alloc = dyn_cast<AllocaInst>(persistent_alloc);
 
-    MDNode *alloc_md = alloc->getMetadata("clang.decl.ptr");
+    MDNode *alloc_md = alloc->getMDNode("clang.decl.ptr");
 
     if (!alloc_md || !alloc_md->getNumOperands())
         return false;