diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-04-07 20:43:38 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-04-07 20:43:38 +0000 |
| commit | 3c45cffd68cd9839d4737ea260ed2706ab304cc9 (patch) | |
| tree | a9e98d63c888ff305a2683d6120ba195ccbed629 /lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp | |
| parent | 6bea2f4f88ddc4437c4a072ca60118e7ad8ed834 (diff) | |
| download | bcm5719-llvm-3c45cffd68cd9839d4737ea260ed2706ab304cc9.tar.gz bcm5719-llvm-3c45cffd68cd9839d4737ea260ed2706ab304cc9.zip | |
Merge MutableFile with SimpleFile.
SimpleFile is the only derived class of MutableFile.
This patch reduces the height of class hierarchy by removing
MutableFile class.
llvm-svn: 234354
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp b/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp index e2037c354bc..3bef510ced8 100644 --- a/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp +++ b/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp @@ -277,7 +277,7 @@ public: _isBig(MachOLinkingContext::isBigEndian(_context.arch())) {} private: - void perform(std::unique_ptr<MutableFile> &mergedFile) override { + void perform(std::unique_ptr<SimpleFile> &mergedFile) override { DEBUG(llvm::dbgs() << "MachO Compact Unwind pass\n"); std::map<const Atom *, CompactUnwindEntry> unwindLocs; @@ -351,7 +351,7 @@ private: } void collectCompactUnwindEntries( - std::unique_ptr<MutableFile> &mergedFile, + std::unique_ptr<SimpleFile> &mergedFile, std::map<const Atom *, CompactUnwindEntry> &unwindLocs, std::vector<const Atom *> &personalities, uint32_t &numLSDAs) { DEBUG(llvm::dbgs() << " Collecting __compact_unwind entries\n"); @@ -422,7 +422,7 @@ private: } void - collectDwarfFrameEntries(std::unique_ptr<MutableFile> &mergedFile, + collectDwarfFrameEntries(std::unique_ptr<SimpleFile> &mergedFile, std::map<const Atom *, const Atom *> &dwarfFrames) { for (const DefinedAtom *ehFrameAtom : mergedFile->defined()) { if (ehFrameAtom->contentType() != DefinedAtom::typeCFI) @@ -442,7 +442,7 @@ private: /// + A synthesised reference to __eh_frame if there's no __compact_unwind /// or too many personality functions to be accommodated. std::vector<CompactUnwindEntry> createUnwindInfoEntries( - const std::unique_ptr<MutableFile> &mergedFile, + const std::unique_ptr<SimpleFile> &mergedFile, const std::map<const Atom *, CompactUnwindEntry> &unwindLocs, const std::vector<const Atom *> &personalities, const std::map<const Atom *, const Atom *> &dwarfFrames) { |

