summaryrefslogtreecommitdiffstats
path: root/lld/lib/Core/LinkingContext.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-10-01 20:24:30 +0000
committerNick Kledzik <kledzik@apple.com>2014-10-01 20:24:30 +0000
commit22c9073ada45da68a870ef136d2000c174c6c00e (patch)
treec12d37366bb32acb0e88fa10935a088dd4fa2b83 /lld/lib/Core/LinkingContext.cpp
parentfbba2fa8d96dac7fc87dd3610a912673ebfbb87a (diff)
downloadbcm5719-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.cpp2
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);
}
OpenPOWER on IntegriCloud