Go to file
Petr Pavlu a934f9da41 Fix setting of empty implicit-section-name attribute
Code in `CodeGenModule::SetFunctionAttributes()` could set an empty
attribute `implicit-section-name` on a function that is affected by
`#pragma clang text="section"`. This is incorrect because the attribute
should contain a valid section name. If the function additionally also
used `__attribute__((section("section")))` then this could result in
emitting the function in a section with an empty name.

The patch fixes the issue by removing the problematic code that sets
empty `implicit-section-name` from
`CodeGenModule::SetFunctionAttributes()` because it is sufficient to set
this attribute only from a similar code in `setNonAliasAttributes()`
when the function is emitted.

Differential Revision: https://reviews.llvm.org/D48916

llvm-svn: 336842
2018-07-11 20:17:54 +00:00
clang Fix setting of empty implicit-section-name attribute 2018-07-11 20:17:54 +00:00
clang-tools-extra [clangd] Uprank delcarations when "using q::name" is present in the main file 2018-07-11 14:49:49 +00:00
compiler-rt Remove ppc64 BE XFAILs now that gcov profiling works, after starting a clean 2018-07-11 19:17:43 +00:00
debuginfo-tests [debuginfo-tests] Always use the system python to invoke llgdb.py. 2018-06-10 19:38:26 +00:00
libclc atom: Use volatile pointers for cl_khr_{global,local}_int32_{base,extended}_atomics 2018-06-21 19:27:39 +00:00
libcxx [CMake] Set per-runtime library directory suffix in runtimes build 2018-07-10 19:13:33 +00:00
libcxxabi [CMake] Set per-runtime library directory suffix in runtimes build 2018-07-10 19:13:33 +00:00
libunwind [CMake] Set per-runtime library directory suffix in runtimes build 2018-07-10 19:13:33 +00:00
lld Also search BitcodeFiles for exclude-lib symbols 2018-07-11 17:45:28 +00:00
lldb Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
llgo Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
llvm Revert "[docs] As of binutils 2.21.51.0.2, ld.bfd supports plugins too, represent this in docs" 2018-07-11 20:08:32 +00:00
openmp Fix const cast problem introduced in r336563 2018-07-09 19:09:31 +00:00
parallel-libs Update copyright year to 2018. 2018-06-18 12:22:17 +00:00
polly [Docs] Fix generation of manpages. 2018-07-09 20:26:11 +00:00
README.md

README.md

Low Level Virtual Machine (LLVM)

This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments.