diff options
| author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-12-05 01:51:20 +0000 |
|---|---|---|
| committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-12-05 01:51:20 +0000 |
| commit | 8c5affedd13c68366c80a872d4711dd27e9c1142 (patch) | |
| tree | 4639b9d6a22d81c73e54b584d55bced94435daeb /llvm/lib/ExecutionEngine | |
| parent | a90f19621bef90077bb75388df38b3eb10a16e15 (diff) | |
| download | bcm5719-llvm-8c5affedd13c68366c80a872d4711dd27e9c1142.tar.gz bcm5719-llvm-8c5affedd13c68366c80a872d4711dd27e9c1142.zip | |
Fix PR475.
llvm-svn: 18515
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/JIT/JIT.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JIT.cpp b/llvm/lib/ExecutionEngine/JIT/JIT.cpp index 537ca56e024..6427bf32e88 100644 --- a/llvm/lib/ExecutionEngine/JIT/JIT.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JIT.cpp @@ -274,6 +274,10 @@ void *JIT::getPointerToFunctionOrStub(Function *F) { if (void *Addr = getPointerToGlobalIfAvailable(F)) return Addr; + // Get a stub if the target supports it + if (void *Addr = TJI.emitFunctionStub(F, *MCE)) + return Addr; + // Otherwise, if the target doesn't support it, just codegen the function. return getPointerToFunction(F); } |

