Move target-specific logic out of generic MCAssembler.
authorJim Grosbach <grosbach@apple.com>
Tue, 6 Dec 2011 00:47:03 +0000 (00:47 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 6 Dec 2011 00:47:03 +0000 (00:47 +0000)
commit370b78d795154899a22ca2b4674e890661ff1d59
tree212eb851e899aec47082208576f32338dbc3cd08
parent7c0674100443b4115d2fd6472e59cd8dcb9cc6d4
Move target-specific logic out of generic MCAssembler.

Whether a fixup needs relaxation for the associated instruction is a
target-specific function, as the FIXME indicated. Create a hook for that
and use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145881 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmBackend.h
include/llvm/MC/MCAssembler.h
lib/MC/MCAssembler.cpp
lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
lib/Target/MBlaze/MCTargetDesc/MBlazeAsmBackend.cpp
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp