Don't map registers to the invalid dwarf register (-1). It's the default value.

X86GenRegisterInfo.inc | 1032 -------------------------------------------------
  1 file changed, 1032 deletions(-)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2012-02-08 18:46:26 +00:00
parent c635ebdb1a
commit 9bcc7a6973

View File

@ -187,6 +187,9 @@ RegisterInfoEmitter::EmitRegMapping(raw_ostream &OS,
for (DwarfRegNumsMapTy::iterator
I = DwarfRegNums.begin(), E = DwarfRegNums.end(); I != E; ++I) {
int RegNo = I->second[i];
if (RegNo == -1) // -1 is the default value, don't emit a mapping.
continue;
OS << " ";
if (!isCtor)
OS << "RI->";