From 6a2de90039572e82548b33fc83c93df4d7236702 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 1 Aug 2014 21:54:37 +0000 Subject: [PATCH] MS inline asm: Hide symbol to attempt to fix test failure on darwin If the symbol comes from an external DSO, it apparently requires indirection through a register. llvm-svn: 214571 --- llvm/test/CodeGen/X86/ms-inline-asm.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/test/CodeGen/X86/ms-inline-asm.ll b/llvm/test/CodeGen/X86/ms-inline-asm.ll index 51f5d5f..f0bdbba 100644 --- a/llvm/test/CodeGen/X86/ms-inline-asm.ll +++ b/llvm/test/CodeGen/X86/ms-inline-asm.ll @@ -126,7 +126,7 @@ entry: ; CHECK: ret } -declare void @other_func() +declare hidden void @other_func() define void @naked() #0 { call void asm sideeffect inteldialect "call dword ptr $0", "*m,~{eax},~{ebx},~{ecx},~{edx},~{edi},~{esi},~{esp},~{ebp},~{dirflag},~{fpsr},~{flags}"(void()* @other_func) -- 2.7.4