Remove unused function argument, add a bit to the comment.

llvm-svn: 168387
This commit is contained in:
Eric Christopher 2012-11-20 22:14:13 +00:00
parent 1d6bd41ee6
commit 1f0cbb826f
2 changed files with 6 additions and 5 deletions

View File

@ -1582,7 +1582,7 @@ void DwarfDebug::recordSourceLine(unsigned Line, unsigned Col, const MDNode *S,
/// computeSizeAndOffset - Compute the size and offset of a DIE. /// computeSizeAndOffset - Compute the size and offset of a DIE.
/// ///
unsigned unsigned
DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) { DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset) {
// Get the children. // Get the children.
const std::vector<DIE *> &Children = Die->getChildren(); const std::vector<DIE *> &Children = Die->getChildren();
@ -1613,7 +1613,7 @@ DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) {
"Children flag not set"); "Children flag not set");
for (unsigned j = 0, M = Children.size(); j < M; ++j) for (unsigned j = 0, M = Children.size(); j < M; ++j)
Offset = computeSizeAndOffset(Children[j], Offset, (j + 1) == M); Offset = computeSizeAndOffset(Children[j], Offset);
// End of children marker. // End of children marker.
Offset += sizeof(int8_t); Offset += sizeof(int8_t);
@ -1634,7 +1634,7 @@ void DwarfDebug::computeSizeAndOffsets() {
sizeof(int16_t) + // DWARF version number sizeof(int16_t) + // DWARF version number
sizeof(int32_t) + // Offset Into Abbrev. Section sizeof(int32_t) + // Offset Into Abbrev. Section
sizeof(int8_t); // Pointer Size (in bytes) sizeof(int8_t); // Pointer Size (in bytes)
computeSizeAndOffset(I->second->getCUDie(), Offset, true); computeSizeAndOffset(I->second->getCUDie(), Offset);
} }
} }

View File

@ -357,9 +357,10 @@ private:
/// ///
void emitDIE(DIE *Die); void emitDIE(DIE *Die);
/// computeSizeAndOffset - Compute the size and offset of a DIE. /// computeSizeAndOffset - Compute the size and offset of a DIE given
/// an incoming Offset.
/// ///
unsigned computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last); unsigned computeSizeAndOffset(DIE *Die, unsigned Offset);
/// computeSizeAndOffsets - Compute the size and offset of all the DIEs. /// computeSizeAndOffsets - Compute the size and offset of all the DIEs.
/// ///