diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-13 19:50:29 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-06-13 19:50:29 +0000 |
commit | bd7b1c89fccd48bf967881a49d97e6645d4b3338 (patch) | |
tree | 144e976a9888d864a1f464bfcd40a6313b31288e /llvm/lib/ExecutionEngine/MCJIT | |
parent | f3cf9d1f6e4c9091b5bfc34bf8211753814b2560 (diff) | |
download | llvm-bd7b1c89fccd48bf967881a49d97e6645d4b3338.zip llvm-bd7b1c89fccd48bf967881a49d97e6645d4b3338.tar.gz llvm-bd7b1c89fccd48bf967881a49d97e6645d4b3338.tar.bz2 |
[ExecutionEngine] ArrayRefize argument passing.
No functionality change intended.
llvm-svn: 239687
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 7e37afe..358d364 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -441,8 +441,7 @@ Function *MCJIT::FindFunctionNamed(const char *FnName) { return F; } -GenericValue MCJIT::runFunction(Function *F, - const std::vector<GenericValue> &ArgValues) { +GenericValue MCJIT::runFunction(Function *F, ArrayRef<GenericValue> ArgValues) { assert(F && "Function *F was null at entry to run()"); void *FPtr = getPointerToFunction(F); diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h index 59e9949..e1d19af 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h @@ -251,7 +251,7 @@ public: void *getPointerToFunction(Function *F) override; GenericValue runFunction(Function *F, - const std::vector<GenericValue> &ArgValues) override; + ArrayRef<GenericValue> ArgValues) override; /// getPointerToNamedFunction - This method returns the address of the /// specified function by using the dlsym function call. As such it is only |