llvm.org GIT mirror llvm / 7be4397
Clean up warning text. Remove extraneous prefix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155015 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("Warning: mayStore flag explicitly set on ") +
2487 Twine("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("Warning: mayLoad flag explicitly set on ") +
2497 Twine("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("Warning: neverHasSideEffects flag explicitly set on ") +
2505 Twine("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("Warning: hasSideEffects flag explicitly set on ") +
2513 Twine("hasSideEffects flag explicitly set on ") +
25142514 "instruction, but flag already inferred from pattern.\n");
25152515 HasSideEffects = true;
25162516 }