Imported Upstream version 5.18.0.225

Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-12-21 19:01:49 +00:00
parent 32d52ae4ca
commit f32dbaf0b2
28477 changed files with 3866961 additions and 38 deletions

View File

@@ -0,0 +1,26 @@
; RUN: llvm-dlltool -k -m i386 --input-def %s --output-lib %t.a
; RUN: llvm-readobj %t.a | FileCheck %s
; RUN: llvm-nm %t.a | FileCheck %s -check-prefix=CHECK-NM
LIBRARY test.dll
EXPORTS
CdeclFunction
StdcallFunction@4
@FastcallFunction@4
StdcallAlias@4=StdcallFunction@4
??_7exception@@6B@
; CHECK: Name type: noprefix
; CHECK: Symbol: __imp__CdeclFunction
; CHECK: Symbol: _CdeclFunction
; CHECK: Name type: undecorate
; CHECK: Symbol: __imp__StdcallFunction@4
; CHECK: Symbol: _StdcallFunction@4
; CHECK: Name type: undecorate
; CHECK: Symbol: __imp_@FastcallFunction@4
; CHECK: Symbol: @FastcallFunction@4
; CHECK: Name type: name
; CHECK: Symbol: __imp_??_7exception@@6B@
; CHECK: Symbol: ??_7exception@@6B@
; CHECK-NM: w _StdcallAlias@4
; CHECK-NM: U _StdcallFunction@4

View File

@@ -0,0 +1,21 @@
; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
; RUN: llvm-readobj -coff-exports %t.a | FileCheck %s
; RUN: llvm-dlltool -m arm64 --input-def %s --output-lib %t.a
; RUN: llvm-readobj -coff-exports %t.a | FileCheck %s
LIBRARY test.dll
EXPORTS
TestFunction1
TestFunction2;
TestFunction3 ; This is a comment
; CHECK: File: test.dll
; CHECK: Format: COFF-import-file
; CHECK: Type: code
; CHECK: Name type: name
; CHECK: Symbol: __imp_TestFunction1
; CHECK: Symbol: TestFunction1
; CHECK: Symbol: __imp_TestFunction2{{$}}
; CHECK: Symbol: TestFunction2{{$}}
; CHECK: Symbol: __imp_TestFunction3{{$}}
; CHECK: Symbol: TestFunction3{{$}}

View File

@@ -0,0 +1,11 @@
; RUN: llvm-dlltool -m i386:x86-64 --input-def %s --output-lib %t.a
; RUN: llvm-nm %t.a | FileCheck %s
LIBRARY test.dll
EXPORTS
TestFunction==AltTestFunction
; CHECK: U AltTestFunction
; CHECK-NEXT: w TestFunction
; CHECK: U __imp_AltTestFunction
; CHECK-NEXT: w __imp_TestFunction

View File

@@ -0,0 +1 @@
config.suffixes = ['.def']