mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
400d5be82b
This adds proper handling of the NONAME-keyword, which makes llvm-dlltool generate an import using the ordinal instead of the name. Patch by by Jannik Vogel, test added by Stefan Schmidt. Differential Revision: https://reviews.llvm.org/D62175 llvm-svn: 361367
15 lines
382 B
Modula-2
15 lines
382 B
Modula-2
; RUN: llvm-dlltool -k -m i386 --input-def %s --output-lib %t.a
|
|
; RUN: llvm-readobj %t.a | FileCheck %s
|
|
|
|
LIBRARY test.dll
|
|
EXPORTS
|
|
ByOrdinalFunction @ 1 NONAME
|
|
ByNameFunction
|
|
|
|
; CHECK: Name type: ordinal
|
|
; CHECK: Symbol: __imp__ByOrdinalFunction
|
|
; CHECK: Symbol: _ByOrdinalFunction
|
|
; CHECK: Name type: noprefix
|
|
; CHECK: Symbol: __imp__ByNameFunction
|
|
; CHECK: Symbol: _ByNameFunction
|