llvm-readobj: speculative fix for MSVC
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 30 Aug 2016 21:21:07 +0000 (21:21 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 30 Aug 2016 21:21:07 +0000 (21:21 +0000)
Use the typedef rather than using to type alias the typename.

llvm-svn: 280158

llvm/tools/llvm-readobj/ELFDumper.cpp

index 7e3394b..86a25ab 100644 (file)
@@ -3240,7 +3240,7 @@ void GNUStyle<ELFT>::printNotes(const ELFFile<ELFT> *Obj) {
 
   auto process = [&](const typename ELFFile<ELFT>::Elf_Off Offset,
                      const typename ELFFile<ELFT>::Elf_Addr Size) {
-    using Word = typename ELFFile<ELFT>::Elf_Word;
+    typedef typename ELFFile<ELFT>::Elf_Word Word;
 
     if (Size <= 0)
       return;