move getNameWithPrefix and getSymbol to TargetMachine.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 19 Feb 2014 20:30:41 +0000 (20:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 19 Feb 2014 20:30:41 +0000 (20:30 +0000)
commitb4aaffffd3473d7eff7fc63d022ed4e9549983ea
treedd32d25e6cc282d929c1cf368af27ad9828b26ef
parent737c9f6005594898eed4746cd310cd161ef209c6
move getNameWithPrefix and getSymbol to TargetMachine.

TargetLoweringBase is implemented in CodeGen, so before this patch we had
a dependency fom Target to CodeGen. This would show up as a link failure of
llvm-stress when building with -DBUILD_SHARED_LIBS=ON.

This fixes pr18900.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201711 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/Target/TargetLowering.h
include/llvm/Target/TargetMachine.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/TargetLoweringBase.cpp
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/LTO/LTOCodeGenerator.cpp
lib/LTO/LTOModule.cpp
lib/Target/ARM/ARMTargetObjectFile.cpp
lib/Target/PowerPC/PPCMCInstLower.cpp
lib/Target/Sparc/SparcTargetObjectFile.cpp
lib/Target/TargetLoweringObjectFile.cpp
lib/Target/TargetMachine.cpp
lib/Target/X86/X86TargetObjectFile.cpp