Centralize the handling of the thumb bit.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 29 Apr 2014 12:46:50 +0000 (12:46 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 29 Apr 2014 12:46:50 +0000 (12:46 +0000)
commit1c5f439f417f7d60e399886e769fa59283a0913b
tree49c6e0b371c4dfcc2876f7c0f4199cdcf9adc3b2
parent65baf804ba6ac8284c0e0f63c42cfb3b85aa89b0
Centralize the handling of the thumb bit.

This patch centralizes the handling of the thumb bit around
MCStreamer::isThumbFunc and makes isThumbFunc handle aliases.

This fixes a corner case, but the main advantage is having just one
way to check if a MCSymbol is thumb or not. This should still be
refactored to be ARM only, but at least now it is just one predicate
that has to be refactored instead of 3 (isThumbFunc,
ELF_Other_ThumbFunc, and SF_ThumbFunc).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207522 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
include/llvm/MC/MCELFSymbolFlags.h
lib/MC/ELFObjectWriter.cpp
lib/MC/MCAssembler.cpp
lib/MC/MCMachOStreamer.cpp
lib/MC/MachObjectWriter.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
lib/Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp
test/MC/ARM/thumb_set.s