[PATCH] D16816: Calculate correct section sizes for llvm-size

Mandeep Singh Grang via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 11:29:47 PST 2016


mgrang added a subscriber: mgrang.

================
Comment at: tools/llvm-size/llvm-size.cpp:124
@@ +123,3 @@
+        ElfSection.getType() == ELF::SHT_REL ||
+        ElfSection.getType() == ELF::SHT_RELA)
+      return false;
----------------
Could you write this as a switch-case? Would make future maintenance easier.


Repository:
  rL LLVM

http://reviews.llvm.org/D16816





More information about the llvm-commits mailing list