[llvm] r184508 - Unbreak bots. Didn't realize this was a C++11 feature.
Sean Silva
silvas at purdue.edu
Thu Jun 20 17:33:01 PDT 2013
Author: silvas
Date: Thu Jun 20 19:33:01 2013
New Revision: 184508
URL: http://llvm.org/viewvc/llvm-project?rev=184508&view=rev
Log:
Unbreak bots. Didn't realize this was a C++11 feature.
Modified:
llvm/trunk/tools/yaml2obj/yaml2elf.cpp
Modified: llvm/trunk/tools/yaml2obj/yaml2elf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/yaml2obj/yaml2elf.cpp?rev=184508&r1=184507&r2=184508&view=diff
==============================================================================
--- llvm/trunk/tools/yaml2obj/yaml2elf.cpp (original)
+++ llvm/trunk/tools/yaml2obj/yaml2elf.cpp Thu Jun 20 19:33:01 2013
@@ -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;
More information about the llvm-commits
mailing list