Fix the root cause of the bootstrap failure:
authorRafael Espindola <rafael.espindola@gmail.com>
Sat, 28 May 2011 00:13:01 +0000 (00:13 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sat, 28 May 2011 00:13:01 +0000 (00:13 +0000)
commit7bf114c1bd0390f4f485905d2fe9c7c6a048b8b7
treed9caff1363dc06d7c02bb22c9a16901ac9433321
parentde64aaf6c8ab3a170b2e5a5b0968595503b5aad4
Fix the root cause of the bootstrap failure:

There was no way to check if a given register/mode pair was valid. We now return
an error code (-2) instead of asserting. If anyone thinks that an assert
at this point  is really needed, we can autogen a hasValidDwarfRegNum instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132236 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
utils/TableGen/RegisterInfoEmitter.cpp