Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: src/IceConverter.cpp

Issue 1516753008: Subzero: Use "auto" per (unwritten) auto coding style. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: More <cast> instances without the llvm:: prefix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceConverter.cpp
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp
index 9ed808eba618c12db5abaad54cb9eef0d807e0f3..58b1d3a33dee840bf349d4e93df547d403fb2491 100644
--- a/src/IceConverter.cpp
+++ b/src/IceConverter.cpp
@@ -706,7 +706,7 @@ LLVM2ICEGlobalsConverter::convertGlobalsToIce(Module *Mod) {
const GlobalVariable *GV = I;
Ice::GlobalDeclaration *Var = getConverter().getGlobalDeclaration(GV);
- Ice::VariableDeclaration *VarDecl = cast<Ice::VariableDeclaration>(Var);
+ auto *VarDecl = cast<Ice::VariableDeclaration>(Var);
VariableDeclarations->push_back(VarDecl);
if (!GV->hasInternalLinkage() && GV->hasInitializer()) {
@@ -864,7 +864,7 @@ void Converter::installGlobalDeclarations(Module *Mod) {
Signature.appendArgType(
Converter.convertToIceType(FuncType->getParamType(I)));
}
- FunctionDeclaration *IceFunc = FunctionDeclaration::create(
+ auto *IceFunc = FunctionDeclaration::create(
Ctx, Signature, Func.getCallingConv(), Func.getLinkage(), Func.empty());
IceFunc->setName(Func.getName());
if (!IceFunc->verifyLinkageCorrect(Ctx)) {
@@ -883,7 +883,7 @@ void Converter::installGlobalDeclarations(Module *Mod) {
E = Mod->global_end();
I != E; ++I) {
const GlobalVariable *GV = I;
- VariableDeclaration *Var = VariableDeclaration::create(Ctx);
+ auto *Var = VariableDeclaration::create(Ctx);
Var->setName(GV->getName());
Var->setAlignment(GV->getAlignment());
Var->setIsConstant(GV->isConstant());
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceGlobalContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698