File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -924,6 +924,7 @@ extern {
924
924
pub fn LLVMSetThreadLocal ( GlobalVar : ValueRef , IsThreadLocal : Bool ) ;
925
925
pub fn LLVMIsGlobalConstant ( GlobalVar : ValueRef ) -> Bool ;
926
926
pub fn LLVMSetGlobalConstant ( GlobalVar : ValueRef , IsConstant : Bool ) ;
927
+ pub fn LLVMGetNamedValue ( M : ModuleRef , Name : * const c_char ) -> ValueRef ;
927
928
928
929
/* Operations on aliases */
929
930
pub fn LLVMAddAlias ( M : ModuleRef ,
Original file line number Diff line number Diff line change @@ -77,6 +77,11 @@ extern "C" void LLVMRustPrintPassTimings() {
77
77
TimerGroup::printAll (OS);
78
78
}
79
79
80
+ extern " C" LLVMValueRef LLVMGetNamedValue (LLVMModuleRef M,
81
+ const char * Name) {
82
+ return wrap (unwrap (M)->getNamedValue (Name));
83
+ }
84
+
80
85
extern " C" LLVMValueRef LLVMGetOrInsertFunction (LLVMModuleRef M,
81
86
const char * Name,
82
87
LLVMTypeRef FunctionTy) {
You can’t perform that action at this time.
0 commit comments