]> granicus.if.org Git - clang/commit
Prune include of DataLayout.h from include/clang/Basic/TargetInfo.h. NFC
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 21 Oct 2019 17:58:14 +0000 (17:58 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 21 Oct 2019 17:58:14 +0000 (17:58 +0000)
commit08b8248b46f3c18bde7e042ebe4d2873f71559df
tree359f36190555bf568a6ecd3e0df0368187af7e04
parentf8ae7e9d59f1d46c86c99ef065f416076b0de50e
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375438 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/TargetInfo.cpp
lib/Basic/Targets/AMDGPU.cpp
lib/Frontend/InitPreprocessor.cpp
unittests/AST/DeclTest.cpp