[PATCH] D16820: Implement common symbol size calculation in llvm-size

khemant@codeaurora.org via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 14:38:57 PST 2016


khemant added inline comments.

================
Comment at: test/tools/llvm-size/X86/test-common.s:17
@@ +16,3 @@
+	movl	$1, x
+	movl	$1, y
+	movl	$1, z
----------------
rafael wrote:
> Do you actually need all this? To test just the common size I don't see you need any asm instruction.
I needed some section with non zero size for case where no common is specified.
Does that matter?

================
Comment at: tools/llvm-size/llvm-size.cpp:370
@@ +369,3 @@
+    if (ELFCommons) {
+      uint64_t common_size = getCommonSize(Obj);
+      total += common_size;
----------------
rafael wrote:
> CommonSize
There are variables with all lower case. Do you want me to converst all locals to upper before merging this patch with upper case variables pertaining to this change? 




Repository:
  rL LLVM

http://reviews.llvm.org/D16820





More information about the llvm-commits mailing list