summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwp/llvm-dwp.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-03-14 09:39:54 +0000
committerPavel Labath <labath@google.com>2018-03-14 09:39:54 +0000
commit322711f5290715b1e6f3da6c215e91760e93b408 (patch)
treed22f7cc01859a2789548c625f27bbb6d0ccfb3e8 /llvm/tools/llvm-dwp/llvm-dwp.cpp
parentbc683cced825ac6fc31c73cc7a539021c9c14284 (diff)
downloadbcm5719-llvm-322711f5290715b1e6f3da6c215e91760e93b408.tar.gz
bcm5719-llvm-322711f5290715b1e6f3da6c215e91760e93b408.zip
DWARF: Unify form size handling code
Summary: This patch replaces the two switches which are deducing the size of various forms with a single implementation. I have put the new implementation into BinaryFormat, to avoid introducing dependencies between the two independent libraries (DebugInfo and CodeGen) that need this functionality. Reviewers: aprantl, JDevlieghere, dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D44418 llvm-svn: 327486
Diffstat (limited to 'llvm/tools/llvm-dwp/llvm-dwp.cpp')
-rw-r--r--llvm/tools/llvm-dwp/llvm-dwp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp
index f577635473e..2ce5b40b2aa 100644
--- a/llvm/tools/llvm-dwp/llvm-dwp.cpp
+++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp
@@ -183,7 +183,7 @@ static Expected<CompileUnitIdentifiers> getCUIdentifiers(StringRef Abbrev,
break;
default:
DWARFFormValue::skipValue(Form, InfoData, &Offset,
- DWARFFormParams({Version, AddrSize, Format}));
+ dwarf::FormParams({Version, AddrSize, Format}));
}
}
return ID;
OpenPOWER on IntegriCloud