mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Rename getExceptionAddressRegister() to getExceptionPointerRegister() for consistency with setExceptionPointerRegister(...).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150460 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd339b71ff
commit
0796134bde
@ -688,10 +688,10 @@ public:
|
||||
return StackPointerRegisterToSaveRestore;
|
||||
}
|
||||
|
||||
/// getExceptionAddressRegister - If a physical register, this returns
|
||||
/// getExceptionPointerRegister - If a physical register, this returns
|
||||
/// the register that receives the exception address on entry to a landing
|
||||
/// pad.
|
||||
unsigned getExceptionAddressRegister() const {
|
||||
unsigned getExceptionPointerRegister() const {
|
||||
return ExceptionPointerRegister;
|
||||
}
|
||||
|
||||
|
@ -3024,7 +3024,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node) {
|
||||
break;
|
||||
}
|
||||
case ISD::EXCEPTIONADDR: {
|
||||
unsigned Reg = TLI.getExceptionAddressRegister();
|
||||
unsigned Reg = TLI.getExceptionPointerRegister();
|
||||
assert(Reg && "Can't expand to unknown register!");
|
||||
Results.push_back(DAG.getCopyFromReg(Node->getOperand(0), dl, Reg,
|
||||
Node->getValueType(0)));
|
||||
|
@ -1853,7 +1853,7 @@ void SelectionDAGBuilder::visitLandingPad(const LandingPadInst &LP) {
|
||||
|
||||
// If there aren't registers to copy the values into (e.g., during SjLj
|
||||
// exceptions), then don't bother to create these DAG nodes.
|
||||
if (TLI.getExceptionAddressRegister() == 0 &&
|
||||
if (TLI.getExceptionPointerRegister() == 0 &&
|
||||
TLI.getExceptionSelectorRegister() == 0)
|
||||
return;
|
||||
|
||||
|
@ -780,7 +780,7 @@ void SelectionDAGISel::PrepareEHLandingPad() {
|
||||
.addSym(Label);
|
||||
|
||||
// Mark exception register as live in.
|
||||
unsigned Reg = TLI.getExceptionAddressRegister();
|
||||
unsigned Reg = TLI.getExceptionPointerRegister();
|
||||
if (Reg) MBB->addLiveIn(Reg);
|
||||
|
||||
// Mark exception selector register as live in.
|
||||
|
Loading…
x
Reference in New Issue
Block a user