Compute the size of the FDE encoding instead of hard coding it. Update

X8664_ELFTargetObjectFile::getFDEEncoding to match reality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129959 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2011-04-22 00:08:43 +00:00
parent e8cfbd843d
commit abf9af60ad
3 changed files with 25 additions and 25 deletions

View File

@@ -58,6 +58,10 @@ public:
return TLOF->getEHFrameSection();
}
const unsigned getFDEEncoding() const {
return TLOF->getFDEEncoding();
}
unsigned getDwarfRARegNum(bool isEH) const {
return TRI->getDwarfRegNum(TRI->getRARegister(), isEH);
}