]> granicus.if.org Git - clang/commit
Set dso_local on builtin functions.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 Mar 2018 18:03:13 +0000 (18:03 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 Mar 2018 18:03:13 +0000 (18:03 +0000)
commit48f819f244e462e1ff8717f0e37d8738e83aa35d
treee83d68100b1118e42f13139a699e86eef816b37c
parent6ef13cd268d2e88861e5240f6feb943d5c51b229
Set dso_local on builtin functions.

The difference between CreateRuntimeFunction and CreateBuiltinFunction
is that CreateBuiltinFunction would not set dllimport or dso_local.

To keep the current semantics, just forward to CreateRuntimeFunction
with Local=true so it doesn't add dllimport.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328224 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGen/mingw-long-double.c