[lld] r210086 - Inline short member function.
Rui Ueyama
ruiu at google.com
Tue Jun 3 00:52:43 PDT 2014
Author: ruiu
Date: Tue Jun 3 02:52:42 2014
New Revision: 210086
URL: http://llvm.org/viewvc/llvm-project?rev=210086&view=rev
Log:
Inline short member function.
Removed:
lld/trunk/lib/Core/PassManager.cpp
Modified:
lld/trunk/include/lld/Core/PassManager.h
Modified: lld/trunk/include/lld/Core/PassManager.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/PassManager.h?rev=210086&r1=210085&r2=210086&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/PassManager.h (original)
+++ lld/trunk/include/lld/Core/PassManager.h Tue Jun 3 02:52:42 2014
@@ -32,7 +32,11 @@ public:
_passes.push_back(std::move(pass));
}
- error_code runOnFile(std::unique_ptr<MutableFile> &);
+ error_code runOnFile(std::unique_ptr<MutableFile> &file) {
+ for (std::unique_ptr<Pass> &pass : _passes)
+ pass->perform(file);
+ return error_code();
+ }
private:
/// \brief Passes in the order they should run.
Removed: lld/trunk/lib/Core/PassManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/PassManager.cpp?rev=210085&view=auto
==============================================================================
--- lld/trunk/lib/Core/PassManager.cpp (original)
+++ lld/trunk/lib/Core/PassManager.cpp (removed)
@@ -1,23 +0,0 @@
-//===- 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 {
-error_code PassManager::runOnFile(std::unique_ptr<MutableFile> &mf) {
- for (std::unique_ptr<Pass> &pass : _passes)
- pass->perform(mf);
- return error_code();
-}
-} // end namespace lld
More information about the llvm-commits
mailing list