TargetRegistry: Reorganize AsmPrinter construction so that clients pass in the
authorDaniel Dunbar <daniel@zuster.org>
Thu, 13 Aug 2009 19:38:51 +0000 (19:38 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 13 Aug 2009 19:38:51 +0000 (19:38 +0000)
commit67d894ea64bc52245abf3f2ba89122a749d99c53
tree958d3ced50746f0f856f498fd00fd6807362ce01
parent4e8e642eaa969db43b2a3ff6955abf3ca8b6789a
TargetRegistry: Reorganize AsmPrinter construction so that clients pass in the
TargetAsmInfo. This eliminates a dependency on TargetMachine.h from
TargetRegistry.h, which technically was a layering violation.
 - Clients probably can only sensibly pass in the same TargetAsmInfo as the
   TargetMachine has, but there are only limited clients of this API.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78928 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetRegistry.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp