summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitaf8b4871a83eacc288dfe23bb7ce976027a41977 (patch)
treee4a56880bdae53d7ee0a6e549e6d24d0639f1c7e /llvm/lib
parent366c146e79ad9ac7e069048a5c167df1f14c5534 (diff)
downloadbcm5719-llvm-af8b4871a83eacc288dfe23bb7ce976027a41977.tar.gz
bcm5719-llvm-af8b4871a83eacc288dfe23bb7ce976027a41977.zip
Call InitSections in llc and clang so that the binaries produced by them
are easier to diff with those produced by llvm-mc. llvm-svn: 116095
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 36038027b25..cf46738e2c9 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud