forked from OSchip/llvm-project
parent
fbfbdc4377
commit
30c5387983
|
@ -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
|
||||
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue