Wrap LLVM’s Module::getNamedValue
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user