Rename getExceptionAddressRegister() to getExceptionPointerRegister() for consistency...
authorLang Hames <lhames@gmail.com>
Tue, 14 Feb 2012 04:45:49 +0000 (04:45 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 14 Feb 2012 04:45:49 +0000 (04:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150460 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 9a62130690c1c499cb82e3bde32f8028583bd177..f84a4f0320a654029ab9895aac5528d7feb316a0 100644 (file)
@@ -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;
   }
 
index 41ec769b11a7091a28d6c7baa5d35715c167ed91..302c83d6dc02c910281ed7540194ba752d41461e 100644 (file)
@@ -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)));
index 1cf4decd43cc58a32436360d35c173ef599ae046..524a91a6daa9a4844457dffc2c3a0efa501bf0f0 100644 (file)
@@ -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;
 
index e02193385d8c6a398b63d483f746a3ce30736bdb..2173d8da468f32af3f5d85d4ba4a4f61cdf5a1b2 100644 (file)
@@ -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.