mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
AsmPrinter: Cleanup DIEValue::EmitValue() API, NFC
Stop taking a `dwarf::Form` in `DIEValue::EmitValue()` and `DIEValue::SizeOf()`, since they're always passed `DIEValue::getForm()` anyway. This is just left over from when `DIEValue` didn't know its own form. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240566 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -103,7 +103,7 @@ unsigned DwarfFile::computeSizeAndOffset(DIE &Die, unsigned Offset) {
|
||||
// Size the DIE attribute values.
|
||||
for (const auto &V : Die.values())
|
||||
// Size attribute value.
|
||||
Offset += V.SizeOf(Asm, V.getForm());
|
||||
Offset += V.SizeOf(Asm);
|
||||
|
||||
// Size the DIE children if any.
|
||||
if (Die.hasChildren()) {
|
||||
|
Reference in New Issue
Block a user