summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-07-30 23:03:25 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-07-30 23:03:25 +0000
commit187bf73b5ddcd46caaa624c09bf36f7ac5c85990 (patch)
tree6d3e5d0fb25a15f3a2650e726e24a48733edb9bd /llvm/lib/ExecutionEngine/Interpreter
parent850138157e78bf8bbdcf4ce67d298c5a76724e1c (diff)
downloadbcm5719-llvm-187bf73b5ddcd46caaa624c09bf36f7ac5c85990.tar.gz
bcm5719-llvm-187bf73b5ddcd46caaa624c09bf36f7ac5c85990.zip
Add a comment: don't expect from external function resolver in interpreter
things, it wasn't designed to handle. llvm-svn: 40608
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index 55391df8886..e86c1bc2b45 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud