Remove unused parameter.

llvm-svn: 228887
This commit is contained in:
Rui Ueyama 2015-02-11 23:22:34 +00:00
parent fbfbdc4377
commit 30c5387983
3 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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());

View File

@ -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