From 7a64ec24d64f1f24906bce220ad6a6ff8b5812fe Mon Sep 17 00:00:00 2001 From: Shankar Easwaran Date: Mon, 1 Dec 2014 20:28:54 +0000 Subject: [PATCH] [Core] Remove function to not override RoundTripPasses. RoundTripPasses should always be called in DEBUG mode if the environment variable "LLD_RUN_ROUNDTRIP_TEST" is set. Flavors should not be able to override this behavior. llvm-svn: 223073 --- lld/include/lld/Core/LinkingContext.h | 4 ---- lld/lib/Core/LinkingContext.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h index b8699106f71a..bd32e49a8be6 100644 --- a/lld/include/lld/Core/LinkingContext.h +++ b/lld/include/lld/Core/LinkingContext.h @@ -319,10 +319,6 @@ public: virtual uint64_t getNextOrdinalAndIncrement() const { return _nextOrdinal++; } #ifndef NDEBUG - void setRunRoundTripPass(bool roundTripPass) { - _runRoundTripPasses = roundTripPass; - } - bool runRoundTripPass() const { return _runRoundTripPasses; } #endif diff --git a/lld/lib/Core/LinkingContext.cpp b/lld/lib/Core/LinkingContext.cpp index ee738660e683..d684a63a0bf2 100644 --- a/lld/lib/Core/LinkingContext.cpp +++ b/lld/lib/Core/LinkingContext.cpp @@ -32,7 +32,7 @@ LinkingContext::LinkingContext() llvm::Optional env = llvm::sys::Process::GetEnv("LLD_RUN_ROUNDTRIP_TEST"); if (env.hasValue() && !env.getValue().empty()) - setRunRoundTripPass(true); + _runRoundTripPasses = true; } #else LinkingContext::LinkingContext()