mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 08:46:37 +00:00
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
This commit is contained in:
parent
37c53ff6a7
commit
bfb4327baa
@ -19,6 +19,7 @@
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
@ -896,11 +897,10 @@ void CodeGenRegBank::computeComposites() {
|
||||
if (i1d->second == Reg3) {
|
||||
// Conflicting composition? Emit a warning but allow it.
|
||||
if (CodeGenSubRegIndex *Prev = Idx1->addComposite(Idx2, i1d->first))
|
||||
errs() << "Warning: SubRegIndex " << Idx1->getQualifiedName()
|
||||
<< " and " << Idx2->getQualifiedName()
|
||||
<< " compose ambiguously as "
|
||||
<< Prev->getQualifiedName() << " or "
|
||||
<< i1d->first->getQualifiedName() << "\n";
|
||||
PrintWarning(Twine("SubRegIndex") + Idx1->getQualifiedName() +
|
||||
" and " + Idx2->getQualifiedName() +
|
||||
" compose ambiguously as " + Prev->getQualifiedName() +
|
||||
" or " + i1d->first->getQualifiedName() +"\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,10 +17,12 @@
|
||||
#include "CodeGenTarget.h"
|
||||
#include "CodeGenRegisters.h"
|
||||
#include "SequenceToOffsetTable.h"
|
||||
#include "llvm/TableGen/Error.h"
|
||||
#include "llvm/TableGen/Record.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/Support/Format.h"
|
||||
#include <algorithm>
|
||||
#include <set>
|
||||
@ -207,8 +209,8 @@ RegisterInfoEmitter::EmitRegMappingTables(raw_ostream &OS,
|
||||
std::vector<int64_t> RegNums = Reg->getValueAsListOfInts("DwarfNumbers");
|
||||
maxLength = std::max((size_t)maxLength, RegNums.size());
|
||||
if (DwarfRegNums.count(Reg))
|
||||
errs() << "Warning: DWARF numbers for register " << getQualifiedName(Reg)
|
||||
<< "specified multiple times\n";
|
||||
PrintWarning(Reg->getLoc(), Twine("DWARF numbers for register ") +
|
||||
getQualifiedName(Reg) + "specified multiple times\n");
|
||||
DwarfRegNums[Reg] = RegNums;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user