summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-05-08 13:44:39 +0000
committerReid Kleckner <reid@kleckner.net>2013-05-08 13:44:39 +0000
commit3190ca922d3743137e15fe0c525c04b177b9983b (patch)
tree1b0564549889d86f89f05ac4107c0d08fbc843b8 /lib/CodeGen/CGExpr.cpp
parentb2f063aeb93670c2415825be457b9e518a9fefdf (diff)
downloadclang-3190ca922d3743137e15fe0c525c04b177b9983b.tar.gz
clang-3190ca922d3743137e15fe0c525c04b177b9983b.tar.bz2
clang-3190ca922d3743137e15fe0c525c04b177b9983b.tar.xz
Forward #pragma comment(lib/linker) through as flags metadata
Summary: Most of this change is wiring the pragma all the way through from the lexer, parser, and sema to codegen. I considered adding a Decl AST node for this, but it seemed too heavyweight. Mach-O already uses a metadata flag called "Linker Options" to do this kind of auto-linking. This change follows that pattern. LLVM knows how to forward the "Linker Options" metadata into the COFF .drectve section where these flags belong. ELF support is not implemented, but possible. This is related to auto-linking, which is http://llvm.org/PR13016. CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D723 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181426 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions