summaryrefslogtreecommitdiff
path: root/utils/TableGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-10 17:52:59 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-10 17:52:59 +0000
commit4bfc6fba78a37ca246bd25753844788d4e562aaf (patch)
tree7a60abbeb3226ad4bc4c17b4a03c71f499f409a1 /utils/TableGen
parentbdda37d7fbafe6876f248341837423a4100f95a5 (diff)
downloadllvm-4bfc6fba78a37ca246bd25753844788d4e562aaf.tar.gz
llvm-4bfc6fba78a37ca246bd25753844788d4e562aaf.tar.bz2
llvm-4bfc6fba78a37ca246bd25753844788d4e562aaf.tar.xz
Downgrade a tablegen warning to an error.
Ambiguous sub-register index compositions are OK as long as the backend writer knows what he is doing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/RegisterInfoEmitter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp
index 053d926265..017a585646 100644
--- a/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/utils/TableGen/RegisterInfoEmitter.cpp
@@ -293,14 +293,13 @@ void RegisterMaps::computeComposites() {
if (i1d->second == Reg3) {
std::pair<CompositeMap::iterator,bool> Ins =
Composite.insert(std::make_pair(IdxPair, i1d->first));
- // Conflicting composition?
+ // Conflicting composition? Emit a warning but allow it.
if (!Ins.second && Ins.first->second != i1d->first) {
- errs() << "Error: SubRegIndex " << getQualifiedName(Idx1)
+ errs() << "Warning: SubRegIndex " << getQualifiedName(Idx1)
<< " and " << getQualifiedName(IdxPair.second)
<< " compose ambiguously as "
<< getQualifiedName(Ins.first->second) << " or "
<< getQualifiedName(i1d->first) << "\n";
- abort();
}
}
}