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

Unified Diff: src/IceCfgNode.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 5 years, 5 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
« no previous file with comments | « src/IceCfgNode.h ('k') | src/IceClFlags.cpp » ('j') | src/IceConverter.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceCfgNode.cpp
diff --git a/src/IceCfgNode.cpp b/src/IceCfgNode.cpp
index 3f8b39b2c8bb30ec1a6ba4560f0551fe231ddab0..55cd7e5d6dff4850a6b562142b62b91232d6b141 100644
--- a/src/IceCfgNode.cpp
+++ b/src/IceCfgNode.cpp
@@ -25,8 +25,8 @@
namespace Ice {
-CfgNode::CfgNode(Cfg *Func, SizeT LabelNumber)
- : Func(Func), Number(LabelNumber) {}
+CfgNode::CfgNode(Cfg *MyFunc, SizeT LabelNumber)
+ : Func(MyFunc), Number(LabelNumber) {}
// Returns the name the node was created with. If no name was given,
// it synthesizes a (hopefully) unique name.
@@ -883,7 +883,7 @@ void updateStats(Cfg *Func, const Inst *I) {
} // end of anonymous namespace
-void CfgNode::emit(Cfg *Func) const {
+void CfgNode::emit() const {
if (!BuildDefs::dump())
return;
Func->setCurrentNode(this);
@@ -946,9 +946,9 @@ class BundleEmitHelper {
BundleEmitHelper &operator=(const BundleEmitHelper &) = delete;
public:
- BundleEmitHelper(Assembler *Asm, TargetLowering *Target,
+ BundleEmitHelper(Assembler *MyAsm, TargetLowering *MyTarget,
const InstList &Insts)
- : Asm(Asm), Target(Target), End(Insts.end()), BundleLockStart(End),
+ : Asm(MyAsm), Target(MyTarget), End(Insts.end()), BundleLockStart(End),
BundleSize(1 << Asm->getBundleAlignLog2Bytes()),
BundleMaskLo(BundleSize - 1), BundleMaskHi(~BundleMaskLo) {}
// Check whether we're currently within a bundle_lock region.
@@ -1056,7 +1056,7 @@ private:
} // end of anonymous namespace
-void CfgNode::emitIAS(Cfg *Func) const {
+void CfgNode::emitIAS() const {
Func->setCurrentNode(this);
Assembler *Asm = Func->getAssembler<>();
// TODO(stichnot): When sandboxing, defer binding the node label
@@ -1164,7 +1164,7 @@ void CfgNode::emitIAS(Cfg *Func) const {
assert(!Retrying);
}
-void CfgNode::dump(Cfg *Func) const {
+void CfgNode::dump() const {
if (!BuildDefs::dump())
return;
Func->setCurrentNode(this);
« no previous file with comments | « src/IceCfgNode.h ('k') | src/IceClFlags.cpp » ('j') | src/IceConverter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698