summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-08-25 08:08:33 +0000
committerBill Wendling <isanbard@gmail.com>2009-08-25 08:08:33 +0000
commit7ccda0f2aadb601ce48f05c12cc153f3fcc554e6 (patch)
treeacdb1d513b5ba75bd1fb9c55480069bf0d8d9ceb /lib/CodeGen
parent2a610c7387664bc557a35ce3bb4c0d4df56e4755 (diff)
downloadllvm-7ccda0f2aadb601ce48f05c12cc153f3fcc554e6.tar.gz
llvm-7ccda0f2aadb601ce48f05c12cc153f3fcc554e6.tar.bz2
llvm-7ccda0f2aadb601ce48f05c12cc153f3fcc554e6.tar.xz
- Rename EmitCommonInformationEntry to EmitCIE.
- Rename EmitFunctionDescriptionEntry to EmitFDE. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp19
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.h15
2 files changed, 15 insertions, 19 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index b0acac2cf9..cbd438bc40 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -49,11 +49,10 @@ DwarfException::~DwarfException() {
delete ExceptionTimer;
}
-/// 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) {
+/// EmitCIE - 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::EmitCIE(const Function *Personality, unsigned Index) {
// Size and sign of stack growth.
int stackGrowth =
Asm->TM.getFrameInfo()->getStackGrowthDirection() ==
@@ -147,10 +146,8 @@ void DwarfException::EmitCommonInformationEntry(const Function *Personality,
Asm->EOL();
}
-/// EmitFrameDescriptionEntry - Emit the Frame Description Entry (FDE) for the
-/// function.
-void DwarfException::
-EmitFrameDescriptionEntry(const FunctionEHFrameInfo &EHFrameInfo) {
+/// EmitFDE - Emit the Frame Description Entry (FDE) for the function.
+void DwarfException::EmitFDE(const FunctionEHFrameInfo &EHFrameInfo) {
assert(!EHFrameInfo.function->hasAvailableExternallyLinkage() &&
"Should not emit 'available externally' functions at all");
@@ -850,11 +847,11 @@ void DwarfException::EndModule() {
if (shouldEmitMovesModule || shouldEmitTableModule) {
const std::vector<Function *> Personalities = MMI->getPersonalities();
for (unsigned i = 0; i < Personalities.size(); ++i)
- EmitCommonInformationEntry(Personalities[i], i);
+ EmitCIE(Personalities[i], i);
for (std::vector<FunctionEHFrameInfo>::iterator I = EHFrames.begin(),
E = EHFrames.end(); I != E; ++I)
- EmitFrameDescriptionEntry(*I);
+ EmitFDE(*I);
}
if (TimePassesIsEnabled)
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.h b/lib/CodeGen/AsmPrinter/DwarfException.h
index 8a9d56808c..b1820b727a 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.h
+++ b/lib/CodeGen/AsmPrinter/DwarfException.h
@@ -70,14 +70,13 @@ class VISIBILITY_HIDDEN DwarfException : public Dwarf {
/// ExceptionTimer - Timer for the Dwarf exception writer.
Timer *ExceptionTimer;
- /// 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);
+ /// EmitCIE - 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 EmitCIE(const Function *Personality, unsigned Index);
+
+ /// EmitFDE - Emit the Frame Description Entry (FDE) for the function.
+ void EmitFDE(const FunctionEHFrameInfo &EHFrameInfo);
/// EmitExceptionTable - Emit landing pads and actions.
///