diff options
author | Rui Ueyama <ruiu@google.com> | 2013-11-01 21:05:42 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-11-01 21:05:42 +0000 |
commit | aa5b4dc8686fa217d4487d158a28478e81e38c17 (patch) | |
tree | f1ea95cc1ce6c4ade4596d515ede575d2548361b /lld/lib/ReaderWriter | |
parent | d0d458665af369af2125773c877f8cc000474011 (diff) | |
download | bcm5719-llvm-aa5b4dc8686fa217d4487d158a28478e81e38c17.tar.gz bcm5719-llvm-aa5b4dc8686fa217d4487d158a28478e81e38c17.zip |
Remove duplicate calls of pm.add() for RoundTrip tests.
llvm-svn: 193885
Diffstat (limited to 'lld/lib/ReaderWriter')
4 files changed, 0 insertions, 16 deletions
diff --git a/lld/lib/ReaderWriter/CoreLinkingContext.cpp b/lld/lib/ReaderWriter/CoreLinkingContext.cpp index 3b83d297e48..9132748f206 100644 --- a/lld/lib/ReaderWriter/CoreLinkingContext.cpp +++ b/lld/lib/ReaderWriter/CoreLinkingContext.cpp @@ -291,10 +291,6 @@ void CoreLinkingContext::addPasses(PassManager &pm) { else llvm_unreachable("bad pass name"); } -#ifndef NDEBUG - pm.add(std::unique_ptr<Pass>(new RoundTripYAMLPass(*this))); - pm.add(std::unique_ptr<Pass>(new RoundTripNativePass(*this))); -#endif } Writer &CoreLinkingContext::writer() const { return *_writer; } diff --git a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp index 827d73d2abe..6c7be8eef5c 100644 --- a/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp @@ -58,10 +58,6 @@ void ELFLinkingContext::addPasses(PassManager &pm) { if (_runLayoutPass) pm.add(std::unique_ptr<Pass>(new LayoutPass())); pm.add(std::unique_ptr<Pass>(new elf::ArrayOrderPass())); -#ifndef NDEBUG - pm.add(std::unique_ptr<Pass>(new RoundTripYAMLPass(*this))); - pm.add(std::unique_ptr<Pass>(new RoundTripNativePass(*this))); -#endif } uint16_t ELFLinkingContext::getOutputMachine() const { diff --git a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp index b79fd39a8bc..655f3d796f1 100644 --- a/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp +++ b/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp @@ -241,10 +241,6 @@ void MachOLinkingContext::addPasses(PassManager &pm) { pm.add(std::unique_ptr<Pass>(new mach_o::GOTPass)); pm.add(std::unique_ptr<Pass>(new mach_o::StubsPass(*this))); pm.add(std::unique_ptr<Pass>(new LayoutPass())); -#ifndef NDEBUG - pm.add(std::unique_ptr<Pass>(new RoundTripYAMLPass(*this))); - pm.add(std::unique_ptr<Pass>(new RoundTripNativePass(*this))); -#endif } Writer &MachOLinkingContext::writer() const { diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp index cd40eafaef9..b3dcb16a43e 100644 --- a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp +++ b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp @@ -210,9 +210,5 @@ void PECOFFLinkingContext::addPasses(PassManager &pm) { pm.add(std::unique_ptr<Pass>(new pecoff::GroupedSectionsPass())); pm.add(std::unique_ptr<Pass>(new pecoff::IdataPass(*this))); pm.add(std::unique_ptr<Pass>(new LayoutPass())); -#ifndef NDEBUG - pm.add(std::unique_ptr<Pass>(new RoundTripYAMLPass(*this))); - pm.add(std::unique_ptr<Pass>(new RoundTripNativePass(*this))); -#endif } } // end namespace lld |