[llvm] r201834 - One last pass of DataLayout variable renaming.
Rafael Espindola
rafael.espindola at gmail.com
Thu Feb 20 18:01:42 PST 2014
Author: rafael
Date: Thu Feb 20 20:01:42 2014
New Revision: 201834
URL: http://llvm.org/viewvc/llvm-project?rev=201834&view=rev
Log:
One last pass of DataLayout variable renaming.
Modified:
llvm/trunk/tools/llc/llc.cpp
llvm/trunk/tools/opt/opt.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=201834&r1=201833&r2=201834&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Thu Feb 20 20:01:42 2014
@@ -293,8 +293,8 @@ static int compileModule(char **argv, LL
PM.add(TLI);
// Add the target data from the target machine, if it exists, or the module.
- if (const DataLayout *TD = Target.getDataLayout())
- PM.add(new DataLayout(*TD));
+ if (const DataLayout *DL = Target.getDataLayout())
+ PM.add(new DataLayout(*DL));
else
PM.add(new DataLayout(mod));
Modified: llvm/trunk/tools/opt/opt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/opt.cpp?rev=201834&r1=201833&r2=201834&view=diff
==============================================================================
--- llvm/trunk/tools/opt/opt.cpp (original)
+++ llvm/trunk/tools/opt/opt.cpp Thu Feb 20 20:01:42 2014
@@ -425,15 +425,15 @@ int main(int argc, char **argv) {
Passes.add(TLI);
// Add an appropriate DataLayout instance for this module.
- DataLayout *TD = 0;
+ DataLayout *DL = 0;
const std::string &ModuleDataLayout = M.get()->getDataLayout();
if (!ModuleDataLayout.empty())
- TD = new DataLayout(ModuleDataLayout);
+ DL = new DataLayout(ModuleDataLayout);
else if (!DefaultDataLayout.empty())
- TD = new DataLayout(DefaultDataLayout);
+ DL = new DataLayout(DefaultDataLayout);
- if (TD)
- Passes.add(TD);
+ if (DL)
+ Passes.add(DL);
Triple ModuleTriple(M->getTargetTriple());
TargetMachine *Machine = 0;
@@ -448,8 +448,8 @@ int main(int argc, char **argv) {
OwningPtr<FunctionPassManager> FPasses;
if (OptLevelO1 || OptLevelO2 || OptLevelOs || OptLevelOz || OptLevelO3) {
FPasses.reset(new FunctionPassManager(M.get()));
- if (TD)
- FPasses->add(new DataLayout(*TD));
+ if (DL)
+ FPasses->add(new DataLayout(*DL));
if (TM.get())
TM->addAnalysisPasses(*FPasses);
More information about the llvm-commits
mailing list