diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-07-30 23:03:25 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-07-30 23:03:25 +0000 |
commit | 42346f58d810204606ea5ec3d2e583b0a6da2531 (patch) | |
tree | effcfb2e0796f66a9d0741b19efbfad77b05d64c /lib/ExecutionEngine/Interpreter | |
parent | 891eecb040b26426fdb31499939eb1916ce6bf8d (diff) | |
download | external_llvm-42346f58d810204606ea5ec3d2e583b0a6da2531.zip external_llvm-42346f58d810204606ea5ec3d2e583b0a6da2531.tar.gz external_llvm-42346f58d810204606ea5ec3d2e583b0a6da2531.tar.bz2 |
Add a comment: don't expect from external function resolver in interpreter
things, it wasn't designed to handle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 55391df..e86c1bc 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -62,6 +62,11 @@ static char getTypeID(const Type *Ty) { } } +// Try to find address of external function given a Function object. +// Please note, that interpreter doesn't know how to assemble a +// real call in general case (this is JIT job), that's why it assumes, +// that all external functions has the same (and pretty "general") signature. +// The typical example of such functions are "lle_X_" ones. static ExFunc lookupFunction(const Function *F) { // Function not found, look it up... start by figuring out what the // composite function name should be. |