llvm.org GIT mirror llvm / bfb4327
Move a few more warnings to use PrintWarning(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155027 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 8 years ago
2 changed file(s) with 9 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1818 #include "llvm/ADT/SmallVector.h"
1919 #include "llvm/ADT/STLExtras.h"
2020 #include "llvm/ADT/StringExtras.h"
21 #include "llvm/ADT/Twine.h"
2122
2223 using namespace llvm;
2324
895896 if (i1d->second == Reg3) {
896897 // Conflicting composition? Emit a warning but allow it.
897898 if (CodeGenSubRegIndex *Prev = Idx1->addComposite(Idx2, i1d->first))
898 errs() << "Warning: SubRegIndex " << Idx1->getQualifiedName()
899 << " and " << Idx2->getQualifiedName()
900 << " compose ambiguously as "
901 << Prev->getQualifiedName() << " or "
902 << i1d->first->getQualifiedName() << "\n";
899 PrintWarning(Twine("SubRegIndex") + Idx1->getQualifiedName() +
900 " and " + Idx2->getQualifiedName() +
901 " compose ambiguously as " + Prev->getQualifiedName() +
902 " or " + i1d->first->getQualifiedName() +"\n");
903903 }
904904 }
905905 }
1616 #include "CodeGenTarget.h"
1717 #include "CodeGenRegisters.h"
1818 #include "SequenceToOffsetTable.h"
19 #include "llvm/TableGen/Error.h"
1920 #include "llvm/TableGen/Record.h"
2021 #include "llvm/ADT/BitVector.h"
2122 #include "llvm/ADT/StringExtras.h"
2223 #include "llvm/ADT/STLExtras.h"
24 #include "llvm/ADT/Twine.h"
2325 #include "llvm/Support/Format.h"
2426 #include
2527 #include
206208 std::vector RegNums = Reg->getValueAsListOfInts("DwarfNumbers");
207209 maxLength = std::max((size_t)maxLength, RegNums.size());
208210 if (DwarfRegNums.count(Reg))
209 errs() << "Warning: DWARF numbers for register " << getQualifiedName(Reg)
210 << "specified multiple times\n";
211 PrintWarning(Reg->getLoc(), Twine("DWARF numbers for register ") +
212 getQualifiedName(Reg) + "specified multiple times\n");
211213 DwarfRegNums[Reg] = RegNums;
212214 }
213215