[Lldb-commits] [lldb] r120972 - /lldb/trunk/source/Expression/IRForTarget.cpp
Sean Callanan
scallanan at apple.com
Sun Dec 5 16:56:39 PST 2010
Author: spyffe
Date: Sun Dec 5 18:56:39 2010
New Revision: 120972
URL: http://llvm.org/viewvc/llvm-project?rev=120972&view=rev
Log:
Fixed a problem in which non-external variables
(for example, string literals) were being flagged
erroneously as undefined external variables.
Modified:
lldb/trunk/source/Expression/IRForTarget.cpp
Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=120972&r1=120971&r2=120972&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Sun Dec 5 18:56:39 2010
@@ -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;
More information about the lldb-commits
mailing list