summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2014-09-15 17:50:22 +0000
committerLang Hames <lhames@gmail.com>2014-09-15 17:50:22 +0000
commit9a78334b969d662855bcfd52303db794c7dd7c8b (patch)
tree1c55adabfcea6db4f6288fc87480d64eda82e599 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
parent7ee25502f6f8f2e0eb100aead2e57416998207c2 (diff)
downloadbcm5719-llvm-9a78334b969d662855bcfd52303db794c7dd7c8b.tar.gz
bcm5719-llvm-9a78334b969d662855bcfd52303db794c7dd7c8b.zip
[MCJIT] Start Stringref-izing the ExecutionEngine interface.
More methods to follow. Using StringRef allows us the EE interface to work with more string types without forcing construction of std::strings. llvm-svn: 217794
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index e441ec8d1a3..4cf3e2044df 100644
--- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
+++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
@@ -517,8 +517,7 @@ GenericValue MCJIT::runFunction(Function *F,
llvm_unreachable("Full-featured argument passing not supported yet!");
}
-void *MCJIT::getPointerToNamedFunction(const std::string &Name,
- bool AbortOnFailure) {
+void *MCJIT::getPointerToNamedFunction(StringRef Name, bool AbortOnFailure) {
if (!isSymbolSearchingDisabled()) {
void *ptr = MemMgr.getPointerToNamedFunction(Name, false);
if (ptr)
OpenPOWER on IntegriCloud