summaryrefslogtreecommitdiffstats
path: root/llvm/test/LTO/X86/stdcall.ll
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-10-12 20:12:19 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-10-12 20:12:19 +0000
commit46aafc16e8b6d5ab9700780a9b03568bef31f708 (patch)
tree16cf1053edb66682cb2ea29fb8fea9d3ec34c6bf /llvm/test/LTO/X86/stdcall.ll
parent2f159a265a36cabc5a088bde50ac87bebaadcf8e (diff)
downloadbcm5719-llvm-46aafc16e8b6d5ab9700780a9b03568bef31f708.tar.gz
bcm5719-llvm-46aafc16e8b6d5ab9700780a9b03568bef31f708.zip
LTO: Use the correct mangler function in LTOCodeGenerator::applyScopeRestrictions().
We need to use the overload of Mangler::getNameWithPrefix that takes a GlobalValue in order to mangle in the stdcall stack byte count for Windows targets. Differential Revision: https://reviews.llvm.org/D25529 llvm-svn: 284040
Diffstat (limited to 'llvm/test/LTO/X86/stdcall.ll')
-rw-r--r--llvm/test/LTO/X86/stdcall.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/LTO/X86/stdcall.ll b/llvm/test/LTO/X86/stdcall.ll
new file mode 100644
index 00000000000..f7800d0212f
--- /dev/null
+++ b/llvm/test/LTO/X86/stdcall.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s > %t
+; RUN: llvm-lto -exported-symbol=_DllMain@12 -filetype=asm -o - %t | FileCheck %s
+
+target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
+target triple = "i386-pc-windows-msvc19.0.23918"
+
+; CHECK: .globl _DllMain@12
+define x86_stdcallcc i32 @DllMain(i8* %module, i32 %reason, i8* %reserved) {
+ ret i32 1
+}
OpenPOWER on IntegriCloud