Rename functions to something more descriptive. At the very least mention the
authorBill Wendling <isanbard@gmail.com>
Tue, 25 Aug 2009 02:27:42 +0000 (02:27 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 25 Aug 2009 02:27:42 +0000 (02:27 +0000)
CIE and FDE in their names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79969 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp
lib/CodeGen/AsmPrinter/DwarfException.h

index c44e7b62092085cf6244e3ec3a1cfe4cbcd4b8aa..a3c7705b002b6800c7b5d201ee0187ff32991125 100644 (file)
@@ -49,8 +49,11 @@ DwarfException::~DwarfException() {
   delete ExceptionTimer;
 }
 
-void DwarfException::EmitCommonEHFrame(const Function *Personality,
-                                       unsigned Index) {
+/// EmitCommonInformationEntry - Emit a Common Information Entry (CIE). This
+/// holds information that is shared among many Frame Description Entries.
+/// There is at least one CIE in every non-empty .debug_frame section.
+void DwarfException::EmitCommonInformationEntry(const Function *Personality,
+                                                unsigned Index) {
   // Size and sign of stack growth.
   int stackGrowth =
     Asm->TM.getFrameInfo()->getStackGrowthDirection() ==
@@ -144,9 +147,10 @@ void DwarfException::EmitCommonEHFrame(const Function *Personality,
   Asm->EOL();
 }
 
-/// EmitEHFrame - Emit function exception frame information.
-///
-void DwarfException::EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo) {
+/// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
+/// function.
+void DwarfException::
+EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo) {
   assert(!EHFrameInfo.function->hasAvailableExternallyLinkage() && 
          "Should not emit 'available externally' functions at all");
 
@@ -844,11 +848,11 @@ void DwarfException::EndModule() {
   if (shouldEmitMovesModule || shouldEmitTableModule) {
     const std::vector<Function *> Personalities = MMI->getPersonalities();
     for (unsigned i = 0; i < Personalities.size(); ++i)
-      EmitCommonEHFrame(Personalities[i], i);
+      EmitCommonInformationEntry(Personalities[i], i);
 
     for (std::vector<FunctionEHFrameInfo>::iterator I = EHFrames.begin(),
            E = EHFrames.end(); I != E; ++I)
-      EmitEHFrame(*I);
+      EmitFrameDescriptionEntry(*I);
   }
 
   if (TimePassesIsEnabled)
index 5f4fda7502868ac0643072f0ac7594a759da4189..8a9d56808cf1214d22d2bc8f7bc46ce315c343c1 100644 (file)
@@ -70,13 +70,14 @@ class VISIBILITY_HIDDEN DwarfException : public Dwarf {
   /// ExceptionTimer - Timer for the Dwarf exception writer.
   Timer *ExceptionTimer;
 
-  /// EmitCommonEHFrame - Emit the common eh unwind frame.
-  ///
-  void EmitCommonEHFrame(const Function *Personality, unsigned Index);
-
-  /// EmitEHFrame - Emit function exception frame information.
-  ///
-  void EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo);
+  /// EmitCommonInformationEntry - Emit a Common Information Entry (CIE). This
+  /// holds information that is shared among many Frame Description Entries.
+  /// There is at least one CIE in every non-empty .debug_frame section.
+  void EmitCommonInformationEntry(const Function *Personality, unsigned Index);
+
+  /// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
+  /// function.
+  void EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo);
 
   /// EmitExceptionTable - Emit landing pads and actions.
   ///