]> granicus.if.org Git - clang/commit
Switch autolinking metadata format over to actual linker options, e.g.,
authorDouglas Gregor <dgregor@apple.com>
Mon, 14 Jan 2013 18:28:43 +0000 (18:28 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 14 Jan 2013 18:28:43 +0000 (18:28 +0000)
commit5d75ea72d6eee3df0c6acdb282145dc4cc3a9a1b
tree240ca7fd2df2161f0fa7a1aafbead9e108a6e331
parent8767dc29ec23f96e71658f760333bdf5d87283d5
Switch autolinking metadata format over to actual linker options, e.g.,

  !0 = metadata !{metadata !"-lautolink"}
  !1 = metadata !{metadata !"-framework", metadata !"autolink_framework"}

referenced from llvm.module.linkoptions, e.g.,

  !llvm.module.linkoptions = !{!0, !1, !2, !3}

This conceptually moves the logic for figuring out the syntax the
linker will accept from LLVM into Clang. Moreover, it makes it easier
to support MSVC's

  #pragma comment(linker, "some option")

in the future, should anyone care to do so.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172441 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
test/Modules/autolink.m