diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-12-29 14:14:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-12-29 14:14:06 +0000 |
commit | ab14a6f174ee9dcae057410465d25c7dc69b8a89 (patch) | |
tree | 39f17cb898f2f1f6cf9cd00c1fe1b91b7a51472b /llvm/lib | |
parent | dacbfe49eccf7ecc4b3cfb90d91525f392500c5f (diff) | |
download | llvm-ab14a6f174ee9dcae057410465d25c7dc69b8a89.zip llvm-ab14a6f174ee9dcae057410465d25c7dc69b8a89.tar.gz llvm-ab14a6f174ee9dcae057410465d25c7dc69b8a89.tar.bz2 |
MC/Mach-O/Thumb: Set the thumb bit in the symbol table.
llvm-svn: 122630
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/MC/MCMachOStreamer.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp index 0e21f4d..7e1cda2 100644 --- a/llvm/lib/MC/MCMachOStreamer.cpp +++ b/llvm/lib/MC/MCMachOStreamer.cpp @@ -140,12 +140,16 @@ void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { } } -void MCMachOStreamer::EmitThumbFunc(MCSymbol *Func) { +void MCMachOStreamer::EmitThumbFunc(MCSymbol *Symbol) { // FIXME: Flag the function ISA as thumb with DW_AT_APPLE_isa. // Remember that the function is a thumb function. Fixup and relocation // values will need adjusted. - getAssembler().setIsThumbFunc(Func); + getAssembler().setIsThumbFunc(Symbol); + + // Mark the thumb bit on the symbol. + MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol); + SD.setFlags(SD.getFlags() | SF_ThumbFunc); } void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) { |