Skip to content

Commit c20a576

Browse files
committed
Define the _fltused symbol in a couple tests post-r352076.
Normally it's defined by MSCRT, but these tests are standalone, so they need to define it themselves. llvm-svn: 352110
1 parent 525ef01 commit c20a576

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

lld/test/COFF/lto-lazy-reference.ll

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
1010
target triple = "i686-pc-windows-msvc18.0.0"
1111

12+
; Define fltused, since we don't link against the MS C runtime but are
13+
; using floats.
14+
@_fltused = dllexport global i32 0, align 4
15+
1216
define double @main(double %x) {
1317
entry:
1418
; When compiled, this defines the __real@40800000 symbol, which already has a

lld/test/COFF/lto-new-symbol.ll

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
66
target triple = "x86_64-pc-windows-msvc"
77

8+
; Define fltused, since we don't link against the MS C runtime but are
9+
; using floats.
10+
@_fltused = dllexport global i32 0, align 4
11+
812
define void @foo(<4 x i32>* %p, <4 x float>* %q, i1 %t) nounwind {
913
entry:
1014
br label %loop

0 commit comments

Comments
 (0)