summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-06-24 18:48:11 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-06-24 18:48:11 +0000
commit9dbb5013b75024cefd942921fbbd8fd14bd6f7ab (patch)
treebb193c056bbfc5fee7158db2ac7b15e3a9bd024b /llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
parent6345fe3eb380e8e3f8663c1dc633501cf70f7910 (diff)
downloadbcm5719-llvm-9dbb5013b75024cefd942921fbbd8fd14bd6f7ab.tar.gz
bcm5719-llvm-9dbb5013b75024cefd942921fbbd8fd14bd6f7ab.zip
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. llvm-svn: 240566
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
index 5ef333c4cf4..408d3798b66 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
@@ -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()) {
OpenPOWER on IntegriCloud