llvm.org GIT mirror llvm / 37c53ff
Tidy up. No need for a Twine here, as it's just constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155026 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 8 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
24842484 // entry is redundant.
24852485 if (MayStore)
24862486 PrintWarning(Inst.TheDef->getLoc(),
2487 Twine("mayStore flag explicitly set on ") +
2487 "mayStore flag explicitly set on "
24882488 "instruction, but flag already inferred from pattern.\n");
24892489 MayStore = true;
24902490 }
24942494 // entry is redundant.
24952495 if (MayLoad)
24962496 PrintWarning(Inst.TheDef->getLoc(),
2497 Twine("mayLoad flag explicitly set on ") +
2497 "mayLoad flag explicitly set on "
24982498 "instruction, but flag already inferred from pattern.\n");
24992499 MayLoad = true;
25002500 }
25022502 if (Inst.neverHasSideEffects) {
25032503 if (HadPattern)
25042504 PrintWarning(Inst.TheDef->getLoc(),
2505 Twine("neverHasSideEffects flag explicitly set on ") +
2505 "neverHasSideEffects flag explicitly set on "
25062506 "instruction, but flag already inferred from pattern.\n");
25072507 HasSideEffects = false;
25082508 }
25102510 if (Inst.hasSideEffects) {
25112511 if (HasSideEffects)
25122512 PrintWarning(Inst.TheDef->getLoc(),
2513 Twine("hasSideEffects flag explicitly set on ") +
2513 "hasSideEffects flag explicitly set on "
25142514 "instruction, but flag already inferred from pattern.\n");
25152515 HasSideEffects = true;
25162516 }