Go to file
Reid Kleckner 22b19da9fc GlobalOpt: Aliases don't have sections, don't copy them when replacing
As defined in LangRef, aliases do not have sections.  However, LLVM's
GlobalAlias class inherits from GlobalValue, which means we can read and
set its section.  We should probably ban that as a separate change,
since it doesn't make much sense for an alias to have a section that
differs from its aliasee.

Fixes PR18757, where the section was being lost on the global in code
from Clang like:

extern "C" {
__attribute__((used, section("CUSTOM"))) static int in_custom_section;
}

Reviewers: rafael.espindola

Differential Revision: http://llvm-reviews.chandlerc.com/D2758

llvm-svn: 201286
2014-02-13 02:18:36 +00:00
clang Really fix unused variable warnings in CIndex. 2014-02-13 01:19:59 +00:00
clang-tools-extra Consume checker names from clang static analyzer. 2014-02-12 09:52:07 +00:00
compiler-rt [sanitizer] Intercept capget()/capset(). 2014-02-12 19:29:49 +00:00
debuginfo-tests don't use CHECK-NEXT because it may be on the same line. 2013-09-18 23:01:54 +00:00
libclc Revert "Enforce python2 for systems that use python3 as their default." 2014-02-12 14:54:17 +00:00
libcxx Fix for PR17606 - result_of (and INVOKE) works incorrectly for member function pointers with ref qualifiers. Also a drive-by fix for common_type in C++03 mode. Thanks to Michel Morin for the bug report and the proposed fix. 2014-02-10 17:40:28 +00:00
libcxxabi [libcxxabi] Fix broken codesourcery.com links in comments 2014-02-12 04:49:09 +00:00
lld [Mips] Use the 'CHECK-NEXT' where we need to check a test output exactly 2014-02-11 07:17:09 +00:00
lldb Remove decorator for fixed test 2014-02-13 01:10:20 +00:00
llvm GlobalOpt: Aliases don't have sections, don't copy them when replacing 2014-02-13 02:18:36 +00:00
openmp For your Christmas hacking pleasure. 2013-12-23 17:28:57 +00:00
polly Fix formatting 2014-02-12 01:55:28 +00:00