summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-06-19 17:51:46 +0000
committerLang Hames <lhames@gmail.com>2015-06-19 17:51:46 +0000
commitb09c2c6edb6ecbd5bea2a6afed48429d64825e87 (patch)
tree2d16ba6dd691b7437a8ad875402f4e4dbb813675 /lld/lib/ReaderWriter/MachO/LayoutPass.cpp
parent261a89b0f70b3193b5358698eb92d18c4c855b36 (diff)
downloadbcm5719-llvm-b09c2c6edb6ecbd5bea2a6afed48429d64825e87.tar.gz
bcm5719-llvm-b09c2c6edb6ecbd5bea2a6afed48429d64825e87.zip
[lld] Allow LLD passes to return error codes.
llvm-svn: 240147
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/LayoutPass.cpp')
-rw-r--r--lld/lib/ReaderWriter/MachO/LayoutPass.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
index de3d5c21db1..c523470c191 100644
--- a/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
+++ b/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
@@ -437,7 +437,7 @@ void LayoutPass::undecorate(SimpleFile::DefinedAtomRange &atomRange,
}
/// Perform the actual pass
-void LayoutPass::perform(std::unique_ptr<SimpleFile> &mergedFile) {
+std::error_code LayoutPass::perform(std::unique_ptr<SimpleFile> &mergedFile) {
// sort the atoms
ScopedTask task(getDefaultDomain(), "LayoutPass");
SimpleFile::DefinedAtomRange atomRange = mergedFile->definedAtoms();
@@ -468,6 +468,8 @@ void LayoutPass::perform(std::unique_ptr<SimpleFile> &mergedFile) {
llvm::dbgs() << "sorted atoms:\n";
printDefinedAtoms(atomRange);
});
+
+ return std::error_code();
}
void addLayoutPass(PassManager &pm, const MachOLinkingContext &ctx) {
OpenPOWER on IntegriCloud