From 00e82a6f6646ff22819f6ff8707988352167d864 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 28 Nov 2018 13:15:06 +0000 Subject: [PATCH] Fix build error. llvm-svn: 347750 --- lld/ELF/ScriptParser.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 6805e9045dc4..c5f2602fc0e1 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -388,36 +388,36 @@ void ScriptParser::readOutputArch() { std::tuple ScriptParser::readBfdName() { StringRef S = unquote(next()); if (S == "elf32-i386") - return {ELF32LEKind, EM_386, false}; + return std::make_tuple(ELF32LEKind, EM_386, false); if (S == "elf32-iamcu") - return {ELF32LEKind, EM_IAMCU, false}; + return std::make_tuple(ELF32LEKind, EM_IAMCU, false); if (S == "elf32-littlearm") - return {ELF32LEKind, EM_ARM, false}; + return std::make_tuple(ELF32LEKind, EM_ARM, false); if (S == "elf32-x86-64") - return {ELF32LEKind, EM_X86_64, false}; + return std::make_tuple(ELF32LEKind, EM_X86_64, false); if (S == "elf64-littleaarch64") - return {ELF64LEKind, EM_AARCH64, false}; + return std::make_tuple(ELF64LEKind, EM_AARCH64, false); if (S == "elf64-powerpc") - return {ELF64BEKind, EM_PPC64, false}; + return std::make_tuple(ELF64BEKind, EM_PPC64, false); if (S == "elf64-powerpcle") - return {ELF64LEKind, EM_PPC64, false}; + return std::make_tuple(ELF64LEKind, EM_PPC64, false); if (S == "elf64-x86-64") - return {ELF64LEKind, EM_X86_64, false}; + return std::make_tuple(ELF64LEKind, EM_X86_64, false); if (S == "elf32-tradbigmips") - return {ELF32BEKind, EM_MIPS, false}; + return std::make_tuple(ELF32BEKind, EM_MIPS, false); if (S == "elf32-ntradbigmips") - return {ELF32BEKind, EM_MIPS, true}; + return std::make_tuple(LF32BEKind, EM_MIPS, true); if (S == "elf32-tradlittlemips") - return {ELF32LEKind, EM_MIPS, false}; + return std::make_tuple(ELF32LEKind, EM_MIPS, false); if (S == "elf32-ntradlittlemips") - return {ELF32LEKind, EM_MIPS, true}; + return std::make_tuple(ELF32LEKind, EM_MIPS, true); if (S == "elf64-tradbigmips") - return {ELF64BEKind, EM_MIPS, false}; + return std::make_tuple(ELF64BEKind, EM_MIPS, false); if (S == "elf64-tradlittlemips") - return {ELF64LEKind, EM_MIPS, false}; + return std::make_tuple(ELF64LEKind, EM_MIPS, false); setError("unknown output format name: " + S); - return {ELFNoneKind, EM_NONE, false}; + return std::make_tuple(ELFNoneKind, EM_NONE, false); } // Parse OUTPUT_FORMAT(bfdname) or OUTPUT_FORMAT(bfdname, big, little).