aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-10-08 19:37:38 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-10-08 19:37:38 +0000
commitff9dfedd101e1a591ec8f7fac9999777cde80efb (patch)
treeec6cb26417b99a1eea93575a4471249301b492d1 /lib/CodeGen
parentc2921ea840a0c87f6c4f065bc775a9060e2aa626 (diff)
downloadexternal_llvm-ff9dfedd101e1a591ec8f7fac9999777cde80efb.zip
external_llvm-ff9dfedd101e1a591ec8f7fac9999777cde80efb.tar.gz
external_llvm-ff9dfedd101e1a591ec8f7fac9999777cde80efb.tar.bz2
Call InitSections in llc and clang so that the binaries produced by them
are easier to diff with those produced by llvm-mc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 3603802..cf46738e 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -160,6 +160,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
AsmStreamer.reset(getTarget().createObjectStreamer(TargetTriple, *Context,
*TAB, Out, MCE,
hasMCRelaxAll()));
+ AsmStreamer.get()->InitSections();
break;
}
case CGFT_Null: