OSDN Git Service

Reapply Support layering fixes.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 21 Mar 2018 17:31:49 +0000 (17:31 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 21 Mar 2018 17:31:49 +0000 (17:31 +0000)
commit1c62040a5cf8d99c6e2e9238e7ad032abeb5df68
tree8d1015f520a2ddb9d14648290f83d342bc4139eb
parent8b9a0b319aa23005013a8ed168fd7021acccf089
Reapply Support layering fixes.

Compiler.h is used by Demangle (which Support depends on) - so sink it
into Demangle to avoid a circular dependency

DataTypes.h is used by llvm-c (which Support depends on) - so sink it
into llvm-c.

DataTypes.h could probably be fixed the other way - making llvm-c depend
on Support instead of Support depending on llvm-c - if anyone feels
that's the better option, happy to work with them on that.

I /think/ this'll address the layering issues that previous attempts to
commit this have triggered in the Modules buildbot, but I haven't been
able to reproduce that build so can't say for sure. If anyone's having
trouble with this - it might be worth taking a look to see if there's a
quick fix/something small I missed rather than revert, but no worries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328123 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
include/llvm-c/DataTypes.h.cmake [moved from include/llvm/Support/DataTypes.h.cmake with 92% similarity]
include/llvm-c/Disassembler.h
include/llvm-c/Support.h
include/llvm-c/Types.h
include/llvm/Demangle/Compiler.h [new file with mode: 0644]
include/llvm/Support/Compiler.h
include/llvm/Support/DataTypes.h [new file with mode: 0644]
lib/Demangle/ItaniumDemangle.cpp