diff options
author | Rui Ueyama <ruiu@google.com> | 2016-07-07 02:46:30 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2016-07-07 02:46:30 +0000 |
commit | 523744dd2b53e67fed50175ae8f2562208756c99 (patch) | |
tree | 3d0414e312498713840ca20d25c7f128c2fc1967 | |
parent | 0f282a593f872ff4d424c930d3c40fa996e91c69 (diff) | |
download | bcm5719-llvm-523744dd2b53e67fed50175ae8f2562208756c99.tar.gz bcm5719-llvm-523744dd2b53e67fed50175ae8f2562208756c99.zip |
Fix formatting.
llvm-svn: 274724
-rw-r--r-- | lld/ELF/InputFiles.cpp | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index d4f24252113..3495da4c5ba 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -565,30 +565,29 @@ static ELFKind getELFKind(MemoryBufferRef MB) { static uint8_t getMachineKind(MemoryBufferRef MB) { std::string TripleStr = getBitcodeTargetTriple(MB, Driver->Context); switch (Triple(TripleStr).getArch()) { - case Triple::aarch64: - return EM_AARCH64; - case Triple::arm: - return EM_ARM; - case Triple::mips: - case Triple::mipsel: - case Triple::mips64: - case Triple::mips64el: - return EM_MIPS; - case Triple::ppc: - return EM_PPC; - case Triple::ppc64: - return EM_PPC64; - case Triple::x86: - return EM_386; - case Triple::x86_64: - return EM_X86_64; - default: - fatal("could not infer e_machine from bitcode target triple " + TripleStr); + case Triple::aarch64: + return EM_AARCH64; + case Triple::arm: + return EM_ARM; + case Triple::mips: + case Triple::mipsel: + case Triple::mips64: + case Triple::mips64el: + return EM_MIPS; + case Triple::ppc: + return EM_PPC; + case Triple::ppc64: + return EM_PPC64; + case Triple::x86: + return EM_386; + case Triple::x86_64: + return EM_X86_64; + default: + fatal("could not infer e_machine from bitcode target triple " + TripleStr); } } -BitcodeFile::BitcodeFile(MemoryBufferRef MB) : - InputFile(BitcodeKind, MB) { +BitcodeFile::BitcodeFile(MemoryBufferRef MB) : InputFile(BitcodeKind, MB) { EKind = getELFKind(MB); EMachine = getMachineKind(MB); } |