summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-readobj
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-01-12 01:40:32 +0000
committerRui Ueyama <ruiu@google.com>2018-01-12 01:40:32 +0000
commit1b31eb94148465eecf4bb50b16d8f26ac2dcc701 (patch)
treecc5531a1270256116b2e34e511b7968226a72e6c /llvm/tools/llvm-readobj
parent8157e8ee8c35efadb7ec7a8744d33eecf4254819 (diff)
downloadbcm5719-llvm-1b31eb94148465eecf4bb50b16d8f26ac2dcc701.tar.gz
bcm5719-llvm-1b31eb94148465eecf4bb50b16d8f26ac2dcc701.zip
Use ELF{32,64}{LE,BE} instead of ELFType<{little,big}, {true,false}>. NFC.
llvm-svn: 322342
Diffstat (limited to 'llvm/tools/llvm-readobj')
-rw-r--r--llvm/tools/llvm-readobj/ELFDumper.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp
index 85ac3ad16bb..fe2627e8797 100644
--- a/llvm/tools/llvm-readobj/ELFDumper.cpp
+++ b/llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -1776,11 +1776,10 @@ void ELFDumper<ELFT>::printUnwindInfo() {
namespace {
-template <> void ELFDumper<ELFType<support::little, false>>::printUnwindInfo() {
+template <> void ELFDumper<ELF32LE>::printUnwindInfo() {
const unsigned Machine = Obj->getHeader()->e_machine;
if (Machine == EM_ARM) {
- ARM::EHABI::PrinterContext<ELFType<support::little, false>> Ctx(
- W, Obj, DotSymtabSec);
+ ARM::EHABI::PrinterContext<ELF32LE> Ctx(W, Obj, DotSymtabSec);
return Ctx.PrintUnwindInformation();
}
W.startLine() << "UnwindInfo not implemented.\n";
@@ -1886,7 +1885,7 @@ void ELFDumper<ELFT>::printAttributes() {
namespace {
-template <> void ELFDumper<ELFType<support::little, false>>::printAttributes() {
+template <> void ELFDumper<ELF32LE>::printAttributes() {
if (Obj->getHeader()->e_machine != EM_ARM) {
W.startLine() << "Attributes not implemented.\n";
return;
OpenPOWER on IntegriCloud