[PATCH] Forward #pragma comment(lib/linker) through as flags metadata
Reid Kleckner
rnk at google.com
Wed Apr 24 13:30:36 PDT 2013
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.
The MC layer change to forward the metadata into the .drectve section is
forthcoming.
This is related to auto-linking, which is http://llvm.org/PR13016.
http://llvm-reviews.chandlerc.com/D723
Files:
include/clang/AST/ASTConsumer.h
include/clang/Basic/PragmaKinds.h
include/clang/Basic/TokenKinds.def
include/clang/Parse/Parser.h
include/clang/Sema/Sema.h
lib/CodeGen/CodeGenAction.cpp
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/CodeGenModule.h
lib/CodeGen/ModuleBuilder.cpp
lib/Lex/Lexer.cpp
lib/Lex/Pragma.cpp
lib/Parse/ParsePragma.cpp
lib/Parse/Parser.cpp
lib/Sema/SemaAttr.cpp
test/CodeGen/pragma-comment.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D723.1.patch
Type: text/x-patch
Size: 15109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130424/c1d98544/attachment.bin>
More information about the cfe-commits
mailing list