Move Compiler.h from Support to Demangler to fix layering.
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 21 Mar 2018 04:07:05 +0000 (04:07 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 21 Mar 2018 04:07:05 +0000 (04:07 +0000)
commit6336aedd392634861e7e0fa9b41d50fd4ba60271
tree021daaf0084bf170df397bc7cd46cb8abdbc2170
parent137a4dd84d647cdb7f0e48112cd87f87eee445e5
Move Compiler.h from Support to Demangler to fix layering.

Support depends on Demangle (Support/Unix/Signals.inc), so Demangle
including Support/Compiler.h created a circular dependency.

Leave a forwarding shim of Compiler.h because it makes more sense for
users (a deeper fix might involve splitting Support into lower and upper
Support - but that also sounds a bit weird/awkward) than thinking about
the dependency on the Demangler.

llvm-svn: 328072
llvm/include/llvm/Demangle/Compiler.h [new file with mode: 0644]
llvm/include/llvm/Support/Compiler.h
llvm/lib/Demangle/ItaniumDemangle.cpp