diff options
author | Douglas Gregor <dgregor@apple.com> | 2013-01-14 18:28:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2013-01-14 18:28:43 +0000 |
commit | ea02f2653655d464345de1d26c8bfb8fdcdac491 (patch) | |
tree | f9c5688d5eadd6a074c7e7e69fc28c96be2dd667 /clang/lib/CodeGen/CodeGenModule.h | |
parent | c2f6f920b9f358c8b8a22633c5ce1526a7b86b89 (diff) | |
download | llvm-ea02f2653655d464345de1d26c8bfb8fdcdac491.zip llvm-ea02f2653655d464345de1d26c8bfb8fdcdac491.tar.gz llvm-ea02f2653655d464345de1d26c8bfb8fdcdac491.tar.bz2 |
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.
llvm-svn: 172441
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 0d644a7..4088cac 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -319,9 +319,6 @@ class CodeGenModule : public CodeGenTypeCache { /// \brief The complete set of modules that has been imported. llvm::SetVector<clang::Module *> ImportedModules; - /// \brief The set of libraries to link against. - std::vector<clang::Module::LinkLibrary> LinkLibraries; - /// @name Cache for Objective-C runtime types /// @{ @@ -998,9 +995,6 @@ private: /// references to global which may otherwise be optimized out. void EmitLLVMUsed(); - /// \brief Emit the set of libraries to link against. - void EmitLinkLibraries(); - void EmitDeclMetadata(); /// EmitCoverageFile - Emit the llvm.gcov metadata used to tell LLVM where |