diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-18 17:28:20 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-18 17:28:20 +0000 |
commit | d2547936bd76b14e6b1d684ee097e9447e70b641 (patch) | |
tree | 564a1d78c771ffbc38d8191861acab43f66e8d20 /lib/MC/MachObjectWriter.cpp | |
parent | 58dc9f6e074c1179c385acbdb0daf416231dc48f (diff) | |
download | external_llvm-d2547936bd76b14e6b1d684ee097e9447e70b641.zip external_llvm-d2547936bd76b14e6b1d684ee097e9447e70b641.tar.gz external_llvm-d2547936bd76b14e6b1d684ee097e9447e70b641.tar.bz2 |
MC/Mach-O: Remove some FIXMEs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r-- | lib/MC/MachObjectWriter.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp index 00c14ef..b1dae3d 100644 --- a/lib/MC/MachObjectWriter.cpp +++ b/lib/MC/MachObjectWriter.cpp @@ -304,9 +304,7 @@ public: uint64_t Start = OS.tell(); (void) Start; - // FIXME: cast<> support! - const MCSectionMachO &Section = - static_cast<const MCSectionMachO&>(SD.getSection()); + const MCSectionMachO &Section = cast<MCSectionMachO>(SD.getSection()); WriteBytes(Section.getSectionName(), 16); WriteBytes(Section.getSegmentName(), 16); if (Is64Bit) { @@ -819,9 +817,8 @@ public: // Bind non lazy symbol pointers first. for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), ie = Asm.indirect_symbol_end(); it != ie; ++it) { - // FIXME: cast<> support! const MCSectionMachO &Section = - static_cast<const MCSectionMachO&>(it->SectionData->getSection()); + cast<MCSectionMachO>(it->SectionData->getSection()); if (Section.getType() != MCSectionMachO::S_NON_LAZY_SYMBOL_POINTERS) continue; @@ -832,9 +829,8 @@ public: // Then lazy symbol pointers and symbol stubs. for (MCAssembler::indirect_symbol_iterator it = Asm.indirect_symbol_begin(), ie = Asm.indirect_symbol_end(); it != ie; ++it) { - // FIXME: cast<> support! const MCSectionMachO &Section = - static_cast<const MCSectionMachO&>(it->SectionData->getSection()); + cast<MCSectionMachO>(it->SectionData->getSection()); if (Section.getType() != MCSectionMachO::S_LAZY_SYMBOL_POINTERS && Section.getType() != MCSectionMachO::S_SYMBOL_STUBS) |