diff options
author | Sean Silva <silvas@purdue.edu> | 2013-06-21 00:33:01 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-06-21 00:33:01 +0000 |
commit | 37e817c8fc95f41f3c6ca4e2dc8e91a7797e59d5 (patch) | |
tree | ac589b80cac6d934a6b345ec5351c21d12657930 /llvm/tools/yaml2obj | |
parent | b6bfbad290c59d61bcdd685f346cccc9ca3e6b98 (diff) | |
download | bcm5719-llvm-37e817c8fc95f41f3c6ca4e2dc8e91a7797e59d5.tar.gz bcm5719-llvm-37e817c8fc95f41f3c6ca4e2dc8e91a7797e59d5.zip |
Unbreak bots. Didn't realize this was a C++11 feature.
llvm-svn: 184508
Diffstat (limited to 'llvm/tools/yaml2obj')
-rw-r--r-- | llvm/tools/yaml2obj/yaml2elf.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp index cd6df144b73..f9bc566f736 100644 --- a/llvm/tools/yaml2obj/yaml2elf.cpp +++ b/llvm/tools/yaml2obj/yaml2elf.cpp @@ -171,11 +171,12 @@ public: // FIXME: At this point it is fairly clear that we need to refactor these // static functions into methods of a class sharing some typedefs. These // ELF type names are insane. -template <class ELFT, - class Elf_Sym = typename object::ELFObjectFile<ELFT>::Elf_Sym> -static void addSymbols(const std::vector<ELFYAML::Symbol> &Symbols, - ELFState<ELFT> &State, std::vector<Elf_Sym> &Syms, - unsigned SymbolBinding) { +template <class ELFT> +static void +addSymbols(const std::vector<ELFYAML::Symbol> &Symbols, ELFState<ELFT> &State, + std::vector<typename object::ELFObjectFile<ELFT>::Elf_Sym> &Syms, + unsigned SymbolBinding) { + typedef typename object::ELFObjectFile<ELFT>::Elf_Sym Elf_Sym; for (unsigned i = 0, e = Symbols.size(); i != e; ++i) { const ELFYAML::Symbol &Sym = Symbols[i]; Elf_Sym Symbol; |