diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-02-10 00:45:28 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-02-10 00:45:28 +0000 |
commit | 35c187bcfda326edcddf0c71ab593786cf88f577 (patch) | |
tree | cc06b8777a2c9f17b289645353346737b8e72f1b /lib/CodeGen/AsmPrinter/DwarfException.cpp | |
parent | 3b1906f48d0b541e5be0bc1918c94a454e908bc0 (diff) |
Improve comments a bit more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfException.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index e097555198..30c12a3ef3 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -762,7 +762,7 @@ void DwarfException::EmitExceptionTable() { // does, instead output it before the table. unsigned SizeTypes = TypeInfos.size() * TypeFormatSize; unsigned TyOffset = sizeof(int8_t) + // Call site format - MCAsmInfo::getULEB128Size(SizeSites) + // Call-site table length + MCAsmInfo::getULEB128Size(SizeSites) + // Call site table length SizeSites + SizeActions + SizeTypes; unsigned TotalSize = sizeof(int8_t) + // LPStart format sizeof(int8_t) + // TType format @@ -836,7 +836,7 @@ void DwarfException::EmitExceptionTable() { // Emit the landing pad call site table. EmitEncodingByte(dwarf::DW_EH_PE_udata4, "Call site"); - EmitULEB128(SizeSites, "Call site table size"); + EmitULEB128(SizeSites, "Call site table length"); for (SmallVectorImpl<CallSiteEntry>::const_iterator I = CallSites.begin(), E = CallSites.end(); I != E; ++I) { @@ -886,12 +886,12 @@ void DwarfException::EmitExceptionTable() { } // Emit the Action Table. - EOL("Action Record Table:"); + if (Actions.size() != 0) EOL("-- Action Record Table --"); unsigned Iter = 1; for (SmallVectorImpl<ActionEntry>::const_iterator I = Actions.begin(), E = Actions.end(); I != E; ++I) { const ActionEntry &Action = *I; - EOL(Twine("Action Record ") + Twine(Iter++)); + EOL("Action Record:"); // Type Filter // |