mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 01:14:25 +08:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user