Changed the IRForTarget pass to ensure that all
sel_getName() calls are generated for all Objective-C
selectors before static literals are moved to the
static allocation.  This prevents errors of the form

Internal error [IRForTarget]: Couldn't change a static
reference to an Objective-C selector to a dynamic
reference

<rdar://problem/11331906>


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@160887 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index 5b98e2b..544c4bc 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -2811,7 +2811,12 @@
             
             return false;
         }
+    }
 
+    for (bbi = function->begin();
+         bbi != function->end();
+         ++bbi)
+    {
         if (!ResolveCalls(*bbi))
         {
             if (log)