[lld] r227536 - Remove unused parameter.
Rui Ueyama
ruiu at google.com
Thu Jan 29 17:35:39 PST 2015
Author: ruiu
Date: Thu Jan 29 19:35:38 2015
New Revision: 227536
URL: http://llvm.org/viewvc/llvm-project?rev=227536&view=rev
Log:
Remove unused parameter.
Modified:
lld/trunk/include/lld/Core/Simple.h
lld/trunk/lib/Passes/RoundTripNativePass.cpp
lld/trunk/lib/Passes/RoundTripYAMLPass.cpp
Modified: lld/trunk/include/lld/Core/Simple.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Simple.h?rev=227536&r1=227535&r2=227536&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Simple.h (original)
+++ lld/trunk/include/lld/Core/Simple.h Thu Jan 29 19:35:38 2015
@@ -79,8 +79,7 @@ protected:
class SimpleFileWrapper : public SimpleFile {
public:
- SimpleFileWrapper(const LinkingContext &context, const File &file)
- : SimpleFile(file.path()) {
+ SimpleFileWrapper(const File &file) : SimpleFile(file.path()) {
for (auto definedAtom : file.defined())
_definedAtoms._atoms.push_back(std::move(definedAtom));
for (auto undefAtom : file.undefined())
Modified: lld/trunk/lib/Passes/RoundTripNativePass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/RoundTripNativePass.cpp?rev=227536&r1=227535&r2=227536&view=diff
==============================================================================
--- lld/trunk/lib/Passes/RoundTripNativePass.cpp (original)
+++ lld/trunk/lib/Passes/RoundTripNativePass.cpp Thu Jan 29 19:35:38 2015
@@ -49,7 +49,7 @@ void RoundTripNativePass::perform(std::u
File *objFile = _nativeFile[0].get();
if (objFile->parse())
llvm_unreachable("native reader parse error");
- mergedFile.reset(new SimpleFileWrapper(_context, *objFile));
+ mergedFile.reset(new SimpleFileWrapper(*objFile));
llvm::sys::fs::remove(tmpNativeFile.str());
}
Modified: lld/trunk/lib/Passes/RoundTripYAMLPass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/RoundTripYAMLPass.cpp?rev=227536&r1=227535&r2=227536&view=diff
==============================================================================
--- lld/trunk/lib/Passes/RoundTripYAMLPass.cpp (original)
+++ lld/trunk/lib/Passes/RoundTripYAMLPass.cpp Thu Jan 29 19:35:38 2015
@@ -49,6 +49,6 @@ void RoundTripYAMLPass::perform(std::uni
File *objFile = _yamlFile[0].get();
if (objFile->parse())
llvm_unreachable("native reader parse error");
- mergedFile.reset(new SimpleFileWrapper(_context, *objFile));
+ mergedFile.reset(new SimpleFileWrapper(*objFile));
llvm::sys::fs::remove(tmpYAMLFile.str());
}
More information about the llvm-commits
mailing list