Fix a thinko in the JIT where the address of a GV was only recorded in the map
authorNate Begeman <natebegeman@mac.com>
Wed, 4 Mar 2009 19:10:38 +0000 (19:10 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 4 Mar 2009 19:10:38 +0000 (19:10 +0000)
commit66941988de6a295649b33f4c2b0f36a094b2244d
tree4c164fb4ef8279881468af9273e16f0a25780b52
parentd344b884dd6e1fde91c631f99413b9553f3c5c59
Fix a thinko in the JIT where the address of a GV was only recorded in the map
  on failure to resolve it.
Do not abort on failure to resolve an external symbol when using dlsym stubs,
  since the symbol may not be in the JIT's address space.  Just use 0.
Allow dlsym stubs to differentiate between GlobalVars and Functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/JIT/JIT.cpp
lib/ExecutionEngine/JIT/JITEmitter.cpp