From: Sean Silva Date: Fri, 21 Jun 2013 00:33:01 +0000 (+0000) Subject: Unbreak bots. Didn't realize this was a C++11 feature. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=552d7cd31a0f6eb0e1434981196f477ae741a184;p=oota-llvm.git 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 --- diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index cd6df144b73..f9bc566f736 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 ::Elf_Sym> -static void addSymbols(const std::vector &Symbols, - ELFState &State, std::vector &Syms, - unsigned SymbolBinding) { +template +static void +addSymbols(const std::vector &Symbols, ELFState &State, + std::vector::Elf_Sym> &Syms, + unsigned SymbolBinding) { + typedef typename object::ELFObjectFile::Elf_Sym Elf_Sym; for (unsigned i = 0, e = Symbols.size(); i != e; ++i) { const ELFYAML::Symbol &Sym = Symbols[i]; Elf_Sym Symbol;