Wrap LLVM’s Module::getNamedValue

This commit is contained in:
Simonas Kazlauskas
2015-02-27 13:37:33 +02:00
parent 723ca4bd4d
commit 2198969f89
2 changed files with 6 additions and 0 deletions

View File

@@ -77,6 +77,11 @@ extern "C" void LLVMRustPrintPassTimings() {
TimerGroup::printAll(OS);
}
extern "C" LLVMValueRef LLVMGetNamedValue(LLVMModuleRef M,
const char* Name) {
return wrap(unwrap(M)->getNamedValue(Name));
}
extern "C" LLVMValueRef LLVMGetOrInsertFunction(LLVMModuleRef M,
const char* Name,
LLVMTypeRef FunctionTy) {