summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/include/lld/Core/LinkingContext.h4
-rw-r--r--lld/lib/Core/LinkingContext.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h
index b8699106f71..bd32e49a8be 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 ee738660e68..d684a63a0bf 100644
--- a/lld/lib/Core/LinkingContext.cpp
+++ b/lld/lib/Core/LinkingContext.cpp
@@ -32,7 +32,7 @@ LinkingContext::LinkingContext()
llvm::Optional<std::string> env =
llvm::sys::Process::GetEnv("LLD_RUN_ROUNDTRIP_TEST");
if (env.hasValue() && !env.getValue().empty())
- setRunRoundTripPass(true);
+ _runRoundTripPasses = true;
}
#else
LinkingContext::LinkingContext()
OpenPOWER on IntegriCloud