[Lldb-commits] [lldb] r221749 - Revert "Update for LLVM API change in r221024"

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Nov 11 17:59:53 PST 2014


Author: dexonsmith
Date: Tue Nov 11 19:59:53 2014
New Revision: 221749

URL: http://llvm.org/viewvc/llvm-project?rev=221749&view=rev
Log:
Revert "Update for LLVM API change in r221024"

This reverts commit r221073 to match upstream revert in r221711.

Modified:
    lldb/trunk/source/Expression/IRDynamicChecks.cpp
    lldb/trunk/source/Expression/IRForTarget.cpp

Modified: lldb/trunk/source/Expression/IRDynamicChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRDynamicChecks.cpp?rev=221749&r1=221748&r2=221749&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRDynamicChecks.cpp (original)
+++ lldb/trunk/source/Expression/IRDynamicChecks.cpp Tue Nov 11 19:59:53 2014
@@ -514,7 +514,7 @@ private:
         {
             // This metadata is set by IRForTarget::MaybeHandleCall().
 
-            MDNode *metadata = call_inst->getMDNode("lldb.call.realName");
+            MDNode *metadata = call_inst->getMetadata("lldb.call.realName");
 
             if (!metadata)
                 return true;

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=221749&r1=221748&r2=221749&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Tue Nov 11 19:59:53 2014
@@ -1209,7 +1209,7 @@ IRForTarget::RewritePersistentAlloc (llv
 
     AllocaInst *alloc = dyn_cast<AllocaInst>(persistent_alloc);
 
-    MDNode *alloc_md = alloc->getMDNode("clang.decl.ptr");
+    MDNode *alloc_md = alloc->getMetadata("clang.decl.ptr");
 
     if (!alloc_md || !alloc_md->getNumOperands())
         return false;





More information about the lldb-commits mailing list