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

Unified Diff: src/IceCfg.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Change the previous underscore naming style Created 5 years, 6 months 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
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index d3b097380d3817e51d511d0d0d64540988d58a9c..563f7204a55e47fd4c1ec8d5148ef90fe34931ac 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -33,8 +33,8 @@ ArenaAllocator<> *getCurrentCfgAllocator() {
return Cfg::getCurrentCfgAllocator();
}
-Cfg::Cfg(GlobalContext *Ctx, uint32_t SequenceNumber)
- : Ctx(Ctx), SequenceNumber(SequenceNumber),
+Cfg::Cfg(GlobalContext *MyCtx, uint32_t MySequenceNumber)
+ : Ctx(MyCtx), SequenceNumber(MySequenceNumber),
VMask(Ctx->getFlags().getVerbose()), NextInstNumber(Inst::NumberInitial),
Allocator(new ArenaAllocator<>()), Live(nullptr),
Target(TargetLowering::createLowering(Ctx->getFlags().getTargetArch(),
@@ -566,7 +566,7 @@ void Cfg::emit() {
IceString MangledName = getContext()->mangleName(getFunctionName());
emitTextHeader(MangledName, Ctx, getAssembler<>());
for (CfgNode *Node : Nodes)
- Node->emit(this);
+ Node->emit();
Str << "\n";
}
@@ -575,7 +575,7 @@ void Cfg::emitIAS() {
// The emitIAS() routines emit into the internal assembler buffer,
// so there's no need to lock the streams.
for (CfgNode *Node : Nodes)
- Node->emitIAS(this);
+ Node->emitIAS();
}
// Dumps the IR with an optional introductory message.
@@ -619,7 +619,7 @@ void Cfg::dump(const IceString &Message) {
}
// Print each basic block
for (CfgNode *Node : Nodes)
- Node->dump(this);
+ Node->dump();
if (isVerbose(IceV_Instructions))
Str << "}\n";
}

Powered by Google App Engine
This is Rietveld 408576698