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 | 552d7cd31a0f6eb0e1434981196f477ae741a184 (patch) | |
tree | 8d62e07f64b4b13f785fe169af7b5555d083e8a3 /tools | |
parent | a5706fcd8018645f4c8740c53ce1082a59a66c95 (diff) | |
download | external_llvm-552d7cd31a0f6eb0e1434981196f477ae741a184.zip external_llvm-552d7cd31a0f6eb0e1434981196f477ae741a184.tar.gz external_llvm-552d7cd31a0f6eb0e1434981196f477ae741a184.tar.bz2 |
Unbreak bots. Didn't realize this was a C++11 feature.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index cd6df14..f9bc566 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/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; |