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)
commit1193c370b4b2ba671e95ae4df20d79068e231398
tree661b9aadbe1ca7477621faa28f6c6e14ce153757
parent0164d11b04c6f832176382e59402188bc482aba7
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.

llvm-svn: 328224
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/mingw-long-double.c