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

Unified Diff: src/IceOperand.cpp

Issue 877003003: Subzero: Use a "known" version of clang-format. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add a clang-format blacklist. Fix formatting "errors". Created 5 years, 11 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/IceOperand.h ('k') | src/IceRNG.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceOperand.cpp
diff --git a/src/IceOperand.cpp b/src/IceOperand.cpp
index 102fe7df9bea80a48dd457a56230956605bce71c..9338bdc55fd962c3a4be99700db241eb8122b146 100644
--- a/src/IceOperand.cpp
+++ b/src/IceOperand.cpp
@@ -190,7 +190,7 @@ void VariableTracking::markDef(MetadataKind TrackingKind, const Inst *Instr,
// be careful not to omit all uses of the variable if markDef() and
// markUse() both use this optimization.
assert(Node);
- // Verify that instructions are added in increasing order.
+// Verify that instructions are added in increasing order.
#ifndef NDEBUG
if (TrackingKind == VMK_All) {
const Inst *LastInstruction =
@@ -274,8 +274,8 @@ void VariablesMetadata::init(MetadataKind TrackingKind) {
const CfgNode *EntryNode = Func->getEntryNode();
const bool IsFromDef = false;
const bool IsImplicit = true;
- Metadata[Var->getIndex()]
- .markUse(Kind, NoInst, EntryNode, IsFromDef, IsImplicit);
+ Metadata[Var->getIndex()].markUse(Kind, NoInst, EntryNode, IsFromDef,
+ IsImplicit);
}
for (CfgNode *Node : Func->getNodes())
@@ -409,8 +409,9 @@ void Variable::dump(const Cfg *Func, Ostream &Str) const {
} else if (Func->getTarget()->hasComputedFrame()) {
if (Func->isVerbose(IceV_RegOrigins))
Str << ":";
- Str << "[" << Func->getTarget()->getRegName(
- Func->getTarget()->getFrameOrStackReg(), IceType_i32);
+ Str << "["
+ << Func->getTarget()->getRegName(
+ Func->getTarget()->getFrameOrStackReg(), IceType_i32);
int32_t Offset = getStackOffset();
if (Offset) {
if (Offset > 0)
« no previous file with comments | « src/IceOperand.h ('k') | src/IceRNG.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698