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 | 4028ccdbe30d689047ff0069eafa2cca269349b0 (patch) | |
| tree | 770258865982ad4e987add326308977b6f8f99f3 /llvm/utils | |
| parent | 50215afd8a61f18a6383327123ef563c58e77389 (diff) | |
| download | bcm5719-llvm-4028ccdbe30d689047ff0069eafa2cca269349b0.tar.gz bcm5719-llvm-4028ccdbe30d689047ff0069eafa2cca269349b0.zip | |
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.
llvm-svn: 131134
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/RegisterInfoEmitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/RegisterInfoEmitter.cpp b/llvm/utils/TableGen/RegisterInfoEmitter.cpp index 053d9262654..017a5856467 100644 --- a/llvm/utils/TableGen/RegisterInfoEmitter.cpp +++ b/llvm/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(); } } } |

