diff options
author | Nick Kledzik <kledzik@apple.com> | 2014-10-01 20:24:30 +0000 |
---|---|---|
committer | Nick Kledzik <kledzik@apple.com> | 2014-10-01 20:24:30 +0000 |
commit | 22c9073ada45da68a870ef136d2000c174c6c00e (patch) | |
tree | c12d37366bb32acb0e88fa10935a088dd4fa2b83 /lld/lib/Core/LinkingContext.cpp | |
parent | fbba2fa8d96dac7fc87dd3610a912673ebfbb87a (diff) | |
download | bcm5719-llvm-22c9073ada45da68a870ef136d2000c174c6c00e.tar.gz bcm5719-llvm-22c9073ada45da68a870ef136d2000c174c6c00e.zip |
Add MachOLinkingContext parameter to MachOFileNode constructor.
No functionality change. This removes a down-cast from LinkingContext to
MachOLinkingContext.
Also, remove const from LinkingContext::createImplicitFiles() to remove
the need for another const cast. Seems reasonable for createImplicitFiles()
to need to modify the context (MachOLinkingContext does).
llvm-svn: 218796
Diffstat (limited to 'lld/lib/Core/LinkingContext.cpp')
-rw-r--r-- | lld/lib/Core/LinkingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index 02ffb4d9fb4..47942d66efe 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -38,7 +38,7 @@ std::error_code LinkingContext::writeFile(const File &linkedFile) const { } bool LinkingContext::createImplicitFiles( - std::vector<std::unique_ptr<File> > &result) const { + std::vector<std::unique_ptr<File> > &result) { return this->writer().createImplicitFiles(result); } |