File tree 2 files changed +11
-1
lines changed
test/Target/LLVMIR/Import 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2106,7 +2106,7 @@ LogicalResult ModuleImport::processFunction(llvm::Function *func) {
2106
2106
iface.isConvertibleIntrinsic (func->getIntrinsicID ()))
2107
2107
return success ();
2108
2108
2109
- bool dsoLocal = func->hasLocalLinkage ();
2109
+ bool dsoLocal = func->isDSOLocal ();
2110
2110
CConv cconv = convertCConvFromLLVM (func->getCallingConv ());
2111
2111
2112
2112
// Insert the function at the end of the module.
Original file line number Diff line number Diff line change 7
7
; CHECK-NOT: res_attrs
8
8
; CHECK-SAME: }>
9
9
declare ptr @func_no_param_attrs ()
10
+
11
+ ; Ensure that we have dso_local
12
+ ; CHECK: "llvm.func"()
13
+ ; CHECK-SAME: <{
14
+ ; CHECK-SAME: dso_local
15
+ ; CHECK-SAME: "dsolocal_func"
16
+ ; CHECK-SAME: }>
17
+ define dso_local void @dsolocal_func () {
18
+ ret void
19
+ }
You can’t perform that action at this time.
0 commit comments