summaryrefslogtreecommitdiffstats
path: root/llvm/tools/yaml2obj/yaml2elf.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-06-02 12:05:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-06-02 12:05:27 +0000
commitac729b468ccb9e55127407b26627ed2194d5381f (patch)
treeff9a097a935ca1a95bdbb9ea4ee410163cad2a50 /llvm/tools/yaml2obj/yaml2elf.cpp
parent995901756f5b7ec6ee7f5aa7e7f01d286c3afec0 (diff)
downloadbcm5719-llvm-ac729b468ccb9e55127407b26627ed2194d5381f.tar.gz
bcm5719-llvm-ac729b468ccb9e55127407b26627ed2194d5381f.zip
Simplify now that we always use an alignment of 2 for ELF files.
This saves 123144 bytes out of llvm-nm on powerpc64le. llvm-svn: 238824
Diffstat (limited to 'llvm/tools/yaml2obj/yaml2elf.cpp')
-rw-r--r--llvm/tools/yaml2obj/yaml2elf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp
index 33865880563..772b5b918ec 100644
--- a/llvm/tools/yaml2obj/yaml2elf.cpp
+++ b/llvm/tools/yaml2obj/yaml2elf.cpp
@@ -552,10 +552,10 @@ int yaml2elf(yaml::Input &YIn, raw_ostream &Out) {
return 1;
}
using object::ELFType;
- typedef ELFType<support::little, 8, true> LE64;
- typedef ELFType<support::big, 8, true> BE64;
- typedef ELFType<support::little, 4, false> LE32;
- typedef ELFType<support::big, 4, false> BE32;
+ typedef ELFType<support::little, true> LE64;
+ typedef ELFType<support::big, true> BE64;
+ typedef ELFType<support::little, false> LE32;
+ typedef ELFType<support::big, false> BE32;
if (is64Bit(Doc)) {
if (isLittleEndian(Doc))
return ELFState<LE64>::writeELF(Out, Doc);
OpenPOWER on IntegriCloud