[llvm] r349741 - [llvm-objcopy] Use ELFOSABI_NONE instead of 0. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 20 02:59:52 PST 2018
Author: grimar
Date: Thu Dec 20 02:59:52 2018
New Revision: 349741
URL: http://llvm.org/viewvc/llvm-project?rev=349741&view=rev
Log:
[llvm-objcopy] Use ELFOSABI_NONE instead of 0. NFC.
This was requested during the review of D55886.
(sorry, forgot to address this)
Modified:
llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp
Modified: llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp?rev=349741&r1=349740&r2=349741&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp Thu Dec 20 02:59:52 2018
@@ -703,7 +703,7 @@ static bool compareSegmentsByPAddr(const
template <class ELFT> void BinaryELFBuilder<ELFT>::initFileHeader() {
Obj->Flags = 0x0;
Obj->Type = ET_REL;
- Obj->OSABI = 0;
+ Obj->OSABI = ELFOSABI_NONE;
Obj->ABIVersion = 0;
Obj->Entry = 0x0;
Obj->Machine = EMachine;
More information about the llvm-commits
mailing list