llvm-project/clang/lib
Francis Visoiu Mistrih 4e799ada58 [CodeGen] Attach no-builtin attributes to function definitions with no Decl
When using -fno-builtin[-<name>], we don't attach the IR attributes to
function definitions with no Decl, like the ones created through
`CreateGlobalInitOrDestructFunction`.

This results in projects using -fno-builtin or -ffreestanding to start
seeing symbols like _memset_pattern16.

The fix changes the behavior to always add the attribute if LangOptions
requests it.

Differential Revision: https://reviews.llvm.org/D73495
2020-01-28 13:59:08 -08:00
..
ARCMigrate Fix "pointer is null" static analyzer warning. NFCI. 2020-01-10 17:21:20 +00:00
AST [clang] Fix EOL whitespace. NFC 2020-01-28 08:47:37 -07:00
ASTMatchers [ASTMatchers] Add cxxNoexceptExpr AST matcher 2020-01-28 13:12:28 +00:00
Analysis [ASTMatchers] Add cxxNoexceptExpr AST matcher 2020-01-28 13:12:28 +00:00
Basic [CUDA] Assume the latest known CUDA version if we've found an unknown one. 2020-01-28 10:11:42 -08:00
CodeGen [CodeGen] Attach no-builtin attributes to function definitions with no Decl 2020-01-28 13:59:08 -08:00
CrossTU [CrossTU] Fix problem with CrossTU AST load limit and progress messages. 2019-08-12 07:15:29 +00:00
DirectoryWatcher [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
Driver [CUDA] Assume the latest known CUDA version if we've found an unknown one. 2020-01-28 10:11:42 -08:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Handle quotes and escaped braces in C# interpolated strings 2020-01-28 14:46:27 +00:00
Frontend Make AST reading work better with LLVM_APPEND_VC_REV=NO 2020-01-27 22:08:37 -05:00
FrontendTool [analyzer] Don't run the analyzer for -analyzer-list-enabled-checkers 2019-09-12 18:53:48 +00:00
Headers [CUDA] Assume the latest known CUDA version if we've found an unknown one. 2020-01-28 10:11:42 -08:00
Index [clang][index] Index the injected class name types. 2020-01-22 10:07:54 +01:00
Lex Add a warning, flags and pragmas to limit the number of pre-processor tokens in a translation unit 2020-01-27 16:04:17 +01:00
Parse [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
Serialization [Concepts] Placeholder constraints and abbreviated templates 2020-01-23 19:39:43 +02:00
StaticAnalyzer [analyzer] Add FuchsiaLockChecker and C11LockChecker 2020-01-27 13:55:56 -08:00
Tooling [AST] Split parent map traversal logic into ParentMapContext.h 2020-01-24 13:42:28 -08:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00