[lld] r228887 - Remove unused parameter.
Rui Ueyama
ruiu at google.com
Wed Feb 11 15:22:34 PST 2015
Author: ruiu
Date: Wed Feb 11 17:22:34 2015
New Revision: 228887
URL: http://llvm.org/viewvc/llvm-project?rev=228887&view=rev
Log:
Remove unused parameter.
Modified:
lld/trunk/include/lld/Core/Writer.h
lld/trunk/lib/Passes/RoundTripNativePass.cpp
lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp
Modified: lld/trunk/include/lld/Core/Writer.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Writer.h?rev=228887&r1=228886&r2=228887&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Writer.h (original)
+++ lld/trunk/include/lld/Core/Writer.h Wed Feb 11 17:22:34 2015
@@ -45,7 +45,7 @@ protected:
std::unique_ptr<Writer> createWriterELF(TargetHandlerBase *handler);
std::unique_ptr<Writer> createWriterMachO(const MachOLinkingContext &);
std::unique_ptr<Writer> createWriterPECOFF(const PECOFFLinkingContext &);
-std::unique_ptr<Writer> createWriterNative(const LinkingContext &);
+std::unique_ptr<Writer> createWriterNative();
std::unique_ptr<Writer> createWriterYAML(const LinkingContext &);
} // end namespace lld
Modified: lld/trunk/lib/Passes/RoundTripNativePass.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Passes/RoundTripNativePass.cpp?rev=228887&r1=228886&r2=228887&view=diff
==============================================================================
--- lld/trunk/lib/Passes/RoundTripNativePass.cpp (original)
+++ lld/trunk/lib/Passes/RoundTripNativePass.cpp Wed Feb 11 17:22:34 2015
@@ -22,7 +22,7 @@ using namespace lld;
/// Perform the actual pass
void RoundTripNativePass::perform(std::unique_ptr<MutableFile> &mergedFile) {
ScopedTask task(getDefaultDomain(), "RoundTripNativePass");
- std::unique_ptr<Writer> nativeWriter = createWriterNative(_context);
+ std::unique_ptr<Writer> nativeWriter = createWriterNative();
SmallString<128> tmpNativeFile;
// Separate the directory from the filename
StringRef outFile = llvm::sys::path::filename(_context.outputPath());
Modified: lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp?rev=228887&r1=228886&r2=228887&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp (original)
+++ lld/trunk/lib/ReaderWriter/Native/WriterNative.cpp Wed Feb 11 17:22:34 2015
@@ -28,8 +28,6 @@ namespace native {
///
class Writer : public lld::Writer {
public:
- Writer(const LinkingContext &context) {}
-
std::error_code writeFile(const lld::File &file, StringRef outPath) override {
// reserve first byte for unnamed atoms
_stringPool.push_back('\0');
@@ -561,7 +559,7 @@ private:
};
} // end namespace native
-std::unique_ptr<Writer> createWriterNative(const LinkingContext &context) {
- return std::unique_ptr<Writer>(new native::Writer(context));
+std::unique_ptr<Writer> createWriterNative() {
+ return std::unique_ptr<Writer>(new native::Writer());
}
} // end namespace lld
More information about the llvm-commits
mailing list