[llvm-commits] [llvm] r116095 - in /llvm/trunk: lib/CodeGen/LLVMTargetMachine.cpp test/MC/ELF/entsize.ll
Rafael Espindola
rafael.espindola at gmail.com
Fri Oct 8 12:37:38 PDT 2010
Author: rafael
Date: Fri Oct 8 14:37:38 2010
New Revision: 116095
URL: http://llvm.org/viewvc/llvm-project?rev=116095&view=rev
Log:
Call InitSections in llc and clang so that the binaries produced by them
are easier to diff with those produced by llvm-mc.
Modified:
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
llvm/trunk/test/MC/ELF/entsize.ll
Modified: llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp?rev=116095&r1=116094&r2=116095&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp (original)
+++ llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp Fri Oct 8 14:37:38 2010
@@ -160,6 +160,7 @@
AsmStreamer.reset(getTarget().createObjectStreamer(TargetTriple, *Context,
*TAB, Out, MCE,
hasMCRelaxAll()));
+ AsmStreamer.get()->InitSections();
break;
}
case CGFT_Null:
Modified: llvm/trunk/test/MC/ELF/entsize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ELF/entsize.ll?rev=116095&r1=116094&r2=116095&view=diff
==============================================================================
--- llvm/trunk/test/MC/ELF/entsize.ll (original)
+++ llvm/trunk/test/MC/ELF/entsize.ll Fri Oct 8 14:37:38 2010
@@ -20,7 +20,7 @@
;;;;;
-; 64: (('sh_name', 7) # '.rodata.str1.1'
+; 64: (('sh_name', 18) # '.rodata.str1.1'
; 64-NEXT: ('sh_type', 1)
; 64-NEXT: ('sh_flags', 50)
; 64-NEXT: ('sh_addr',
@@ -31,7 +31,7 @@
; 64-NEXT: ('sh_addralign', 1)
; 64-NEXT: ('sh_entsize', 1)
-; 64: (('sh_name', 22) # '.rodata.cst8'
+; 64: (('sh_name', 33) # '.rodata.cst8'
; 64-NEXT: ('sh_type', 1)
; 64-NEXT: ('sh_flags', 18)
; 64-NEXT: ('sh_addr',
More information about the llvm-commits
mailing list