summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-rtdyld
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-03-09 23:44:13 +0000
committerLang Hames <lhames@gmail.com>2015-03-09 23:44:13 +0000
commit3197fb4a89dc9cddb23ad4298e6121354f1d488b (patch)
treedda1bfd681e616fc05ac6e4bf606d7604ea0f3fb /llvm/tools/llvm-rtdyld
parentfa79110cc78c8cf751d98890390372782b2e3b73 (diff)
downloadbcm5719-llvm-3197fb4a89dc9cddb23ad4298e6121354f1d488b.tar.gz
bcm5719-llvm-3197fb4a89dc9cddb23ad4298e6121354f1d488b.zip
[Orc][MCJIT][RuntimeDyld] Add symbol flags to symbols in RuntimeDyld. Thread the
new types through MCJIT and Orc. In particular, add a 'weak' flag. When plumbed through RTDyldMemoryManager, this will allow us to distinguish between weak and strong definitions and find the right ones during symbol resolution. llvm-svn: 231724
Diffstat (limited to 'llvm/tools/llvm-rtdyld')
-rw-r--r--llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
index 508318c12a9..946201521ba 100644
--- a/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
+++ b/llvm/tools/llvm-rtdyld/llvm-rtdyld.cpp
@@ -298,7 +298,7 @@ static int executeInput() {
// FIXME: Error out if there are unresolved relocations.
// Get the address of the entry point (_main by default).
- void *MainAddress = Dyld.getSymbolAddress(EntryPoint);
+ void *MainAddress = Dyld.getSymbolLocalAddress(EntryPoint);
if (!MainAddress)
return Error("no definition for '" + EntryPoint + "'");
OpenPOWER on IntegriCloud