mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove unused function argument, add a bit to the comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168387 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aaa50b9bc5
commit
fbd1975038
@ -1582,7 +1582,7 @@ void DwarfDebug::recordSourceLine(unsigned Line, unsigned Col, const MDNode *S,
|
||||
/// computeSizeAndOffset - Compute the size and offset of a DIE.
|
||||
///
|
||||
unsigned
|
||||
DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) {
|
||||
DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset) {
|
||||
// Get the children.
|
||||
const std::vector<DIE *> &Children = Die->getChildren();
|
||||
|
||||
@ -1613,7 +1613,7 @@ DwarfDebug::computeSizeAndOffset(DIE *Die, unsigned Offset, bool Last) {
|
||||
"Children flag not set");
|
||||
|
||||
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.
|
||||
Offset += sizeof(int8_t);
|
||||
@ -1634,7 +1634,7 @@ void DwarfDebug::computeSizeAndOffsets() {
|
||||
sizeof(int16_t) + // DWARF version number
|
||||
sizeof(int32_t) + // Offset Into Abbrev. Section
|
||||
sizeof(int8_t); // Pointer Size (in bytes)
|
||||
computeSizeAndOffset(I->second->getCUDie(), Offset, true);
|
||||
computeSizeAndOffset(I->second->getCUDie(), Offset);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -357,9 +357,10 @@ private:
|
||||
///
|
||||
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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user