r242099 - Remove a completely redundant initialization of llvm::TimePassesIsEnabled,
Adrian Prantl
aprantl at apple.com
Mon Jul 13 18:04:40 PDT 2015
Author: adrian
Date: Mon Jul 13 20:04:40 2015
New Revision: 242099
URL: http://llvm.org/viewvc/llvm-project?rev=242099&view=rev
Log:
Remove a completely redundant initialization of llvm::TimePassesIsEnabled,
which is actually the variable backing up the llvm -time-passes command
line argument.
llvm::TimePassesIsEnabled is actually being initialized in CodeGenAction.
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=242099&r1=242098&r2=242099&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Mon Jul 13 20:04:40 2015
@@ -455,8 +455,6 @@ TargetMachine *EmitAssemblyHelper::Creat
BackendArgs.push_back("-limit-float-precision");
BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
}
- if (llvm::TimePassesIsEnabled)
- BackendArgs.push_back("-time-passes");
for (unsigned i = 0, e = CodeGenOpts.BackendOptions.size(); i != e; ++i)
BackendArgs.push_back(CodeGenOpts.BackendOptions[i].c_str());
BackendArgs.push_back(nullptr);
More information about the cfe-commits
mailing list