]> granicus.if.org Git - clang/commit
Modular Codegen: Separate flags for function and debug info support
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 12 Apr 2017 20:58:33 +0000 (20:58 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 12 Apr 2017 20:58:33 +0000 (20:58 +0000)
commit88cdb963dec3e6887528b4475f51381950891d4a
tree49b5b6024eece2b5149d4406de39c06824c1c7f2
parent8ae674d121a0c39b4ae6e83d10caad3fd29dce13
Modular Codegen: Separate flags for function and debug info support

This allows using and testing these two features separately. (noteably,
debug info is, so far as I know, always a win (basically). But function
modular codegen is currently a loss for highly optimized code - where
most of the linkonce_odr definitions are optimized away, so providing
weak_odr definitions is only overhead)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300104 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
lib/Frontend/CompilerInvocation.cpp
lib/Lex/ModuleMap.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/ASTWriterDecl.cpp
test/Modules/Inputs/codegen-flags/foo.h [new file with mode: 0644]
test/Modules/Inputs/codegen-flags/foo.modulemap [new file with mode: 0644]
test/Modules/Inputs/codegen-flags/use.cpp [new file with mode: 0644]
test/Modules/codegen-flags.test [new file with mode: 0644]
test/Modules/codegen.test