Enable this for the following flavors a) core b) gnu c) darwin Its disabled for the flavor PECOFF. Convenient markers are added with FIXME comments in the Driver that would be removed and code removed from each flavor. llvm-svn: 193585
25 lines
679 B
C++
25 lines
679 B
C++
//===- lib/Core/PassManager.cpp - Manage linker passes --------------------===//
|
|
//
|
|
// The LLVM Linker
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "lld/Core/PassManager.h"
|
|
|
|
#include "lld/Core/Instrumentation.h"
|
|
#include "lld/Core/Pass.h"
|
|
|
|
#include "llvm/Support/ErrorOr.h"
|
|
|
|
namespace lld {
|
|
ErrorOr<void> PassManager::runOnFile(std::unique_ptr<MutableFile> &mf) {
|
|
for (auto &pass : _passes) {
|
|
pass->perform(mf);
|
|
}
|
|
return llvm::error_code::success();
|
|
}
|
|
} // end namespace lld
|