[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
This commit is contained in:
Shankar Easwaran
2014-12-01 20:28:54 +00:00
parent 0d040f66a5
commit 7a64ec24d6
2 changed files with 1 additions and 5 deletions

View File

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

View File

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