[all-commits] [llvm/llvm-project] b14771: [MSVC] Add support for pragma alloc_text

Stephen Long via All-commits all-commits at lists.llvm.org
Mon May 16 07:00:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b147717bb36c915bedfb33c07259cac4f09502a1
      https://github.com/llvm/llvm-project/commit/b147717bb36c915bedfb33c07259cac4f09502a1
  Author: Stephen Long <steplong at quicinc.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/include/clang/Parse/Parser.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParsePragma.cpp
    M clang/lib/Sema/SemaAttr.cpp
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/CodeGen/msvc_pragma_alloc_text.cpp
    A clang/test/Sema/pragma-ms-alloc-text.cpp

  Log Message:
  -----------
  [MSVC] Add support for pragma alloc_text

`#pragma alloc_text` is a MSVC pragma that names the code section where functions should be placed. It only
applies to functions with C linkage.

https://docs.microsoft.com/en-us/cpp/preprocessor/alloc-text?view=msvc-170

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list