From: Reid Kleckner Date: Fri, 1 Aug 2014 21:54:37 +0000 (+0000) Subject: MS inline asm: Hide symbol to attempt to fix test failure on darwin X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b125730db8774734cfea830fe00e35988520ef39;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214571 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/ms-inline-asm.ll b/test/CodeGen/X86/ms-inline-asm.ll index 51f5d5f6321..f0bdbba50ef 100644 --- a/test/CodeGen/X86/ms-inline-asm.ll +++ b/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)