Fixed a problem in which non-external variables
(for example, string literals) were being flagged
erroneously as undefined external variables.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@120972 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/IRForTarget.cpp b/source/Expression/IRForTarget.cpp
index 7b82271..3012a78 100644
--- a/source/Expression/IRForTarget.cpp
+++ b/source/Expression/IRForTarget.cpp
@@ -870,6 +870,9 @@
             if (IsObjCSelectorRef(llvm_value_ptr))
                 return true;
             
+            if (!global_variable->hasExternalLinkage())
+                return true;
+            
             if (log)
                 log->Printf("Found global variable \"%s\" without metadata", global_variable->getName().str().c_str());
             return false;