Skip to content

Commit

Permalink
tblgen: remove duplicated newlines.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155038 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
d0k committed Apr 18, 2012
1 parent 325478d commit 3cbcffc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions utils/TableGen/CodeGenDAGPatterns.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2486,7 +2486,7 @@ static void InferFromPattern(const CodeGenInstruction &Inst,
if (MayStore)
PrintWarning(Inst.TheDef->getLoc(),
"mayStore flag explicitly set on "
"instruction, but flag already inferred from pattern.\n");
"instruction, but flag already inferred from pattern.");
MayStore = true;
}

Expand All @@ -2496,23 +2496,23 @@ static void InferFromPattern(const CodeGenInstruction &Inst,
if (MayLoad)
PrintWarning(Inst.TheDef->getLoc(),
"mayLoad flag explicitly set on "
"instruction, but flag already inferred from pattern.\n");
"instruction, but flag already inferred from pattern.");
MayLoad = true;
}

if (Inst.neverHasSideEffects) {
if (HadPattern)
PrintWarning(Inst.TheDef->getLoc(),
"neverHasSideEffects flag explicitly set on "
"instruction, but flag already inferred from pattern.\n");
"instruction, but flag already inferred from pattern.");
HasSideEffects = false;
}

if (Inst.hasSideEffects) {
if (HasSideEffects)
PrintWarning(Inst.TheDef->getLoc(),
"hasSideEffects flag explicitly set on "
"instruction, but flag already inferred from pattern.\n");
"instruction, but flag already inferred from pattern.");
HasSideEffects = true;
}

Expand Down
2 changes: 1 addition & 1 deletion utils/TableGen/CodeGenRegisters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ void CodeGenRegBank::computeComposites() {
PrintWarning(Twine("SubRegIndex") + Idx1->getQualifiedName() +
" and " + Idx2->getQualifiedName() +
" compose ambiguously as " + Prev->getQualifiedName() +
" or " + i1d->first->getQualifiedName() +"\n");
" or " + i1d->first->getQualifiedName());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion utils/TableGen/RegisterInfoEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ RegisterInfoEmitter::EmitRegMappingTables(raw_ostream &OS,
maxLength = std::max((size_t)maxLength, RegNums.size());
if (DwarfRegNums.count(Reg))
PrintWarning(Reg->getLoc(), Twine("DWARF numbers for register ") +
getQualifiedName(Reg) + "specified multiple times\n");
getQualifiedName(Reg) + "specified multiple times");
DwarfRegNums[Reg] = RegNums;
}

Expand Down

0 comments on commit 3cbcffc

Please sign in to comment.