diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-10 17:52:59 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-05-10 17:52:59 +0000 |
commit | 4bfc6fba78a37ca246bd25753844788d4e562aaf (patch) | |
tree | 7a60abbeb3226ad4bc4c17b4a03c71f499f409a1 /utils | |
parent | bdda37d7fbafe6876f248341837423a4100f95a5 (diff) | |
download | external_llvm-4bfc6fba78a37ca246bd25753844788d4e562aaf.zip external_llvm-4bfc6fba78a37ca246bd25753844788d4e562aaf.tar.gz external_llvm-4bfc6fba78a37ca246bd25753844788d4e562aaf.tar.bz2 |
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')
-rw-r--r-- | utils/TableGen/RegisterInfoEmitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 053d926..017a585 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(); } } } |