summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-18 17:28:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-18 17:28:20 +0000
commitf16c12d7a197b332330c9cdebd4695962342ae77 (patch)
treecd1887610e77c2bb9d5416f32d85739d65c79433 /llvm/lib/MC/MachObjectWriter.cpp
parent39617bb08a0c24c3d5aa685738585ba5430ff5b1 (diff)
downloadbcm5719-llvm-f16c12d7a197b332330c9cdebd4695962342ae77.tar.gz
bcm5719-llvm-f16c12d7a197b332330c9cdebd4695962342ae77.zip
MC/Mach-O: Remove some FIXMEs.
llvm-svn: 104032
Diffstat (limited to 'llvm/lib/MC/MachObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/MachObjectWriter.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp
index 00c14ef9de1..b1dae3dd1d8 100644
--- a/llvm/lib/MC/MachObjectWriter.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud