[all-commits] [llvm/llvm-project] 0dac63: [Clang][Sema] Capturing section type conflicts on ...

Lucas Duarte Prates via All-commits all-commits at lists.llvm.org
Thu May 7 03:53:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0dac639f285a53dffe3239ec5561fa0fc2da0daf
      https://github.com/llvm/llvm-project/commit/0dac639f285a53dffe3239ec5561fa0fc2da0daf
  Author: Lucas Prates <lucas.prates at arm.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M clang/include/clang/AST/ASTContext.h
    M clang/lib/Parse/ParsePragma.cpp
    M clang/lib/Sema/SemaAttr.cpp
    M clang/test/Sema/pragma-clang-section.c

  Log Message:
  -----------
  [Clang][Sema] Capturing section type conflicts on #pragma clang section

Summary:
Section names used in clang section pragmas were not validated against
previously defined sections, causing section type conflicts to be
ignored by Sema.

This patch enables Clang to capture these section type conflicts by
using the existing Sema's UnifySection method to validate section names
from clang section pragmas.

Reviewers: hans, rnk, javed.absar

Reviewed By: rnk

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list