[all-commits] [llvm/llvm-project] 78424e: Prune include of DataLayout.h from include/clang/B...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Mon Oct 21 10:57:07 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 78424e5f8417f5014006e951dbe813d092cb567f
      https://github.com/llvm/llvm-project/commit/78424e5f8417f5014006e951dbe813d092cb567f
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2019-10-21 (Mon, 21 Oct 2019)

  Changed paths:
    M clang/include/clang/Basic/TargetInfo.h
    M clang/lib/Basic/TargetInfo.cpp
    M clang/lib/Basic/Targets/AMDGPU.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/unittests/AST/DeclTest.cpp

  Log Message:
  -----------
  Prune include of DataLayout.h from include/clang/Basic/TargetInfo.h. NFC

Summary:
Use a forward declaration of DataLayout instead of including
DataLayout.h in clangs TargetInfo.h. This reduces include
dependencies toward DataLayout.h (and other headers such as
DerivedTypes.h, Type.h that is included by DataLayout.h).

Needed to move implemantation of TargetInfo::resetDataLayout
from TargetInfo.h to TargetInfo.cpp.

Reviewers: rnk

Reviewed By: rnk

Subscribers: jvesely, nhaehnle, cfe-commits, llvm-commits

Tags: #clang

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

llvm-svn: 375438




More information about the All-commits mailing list