Defer call to InitSections until after MCContext has been initialized. If
authorLang Hames <lhames@gmail.com>
Mon, 10 Dec 2012 22:49:11 +0000 (22:49 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 10 Dec 2012 22:49:11 +0000 (22:49 +0000)
commit07f6a4fde0a1b081fbefd986345c9b2f4f85e88a
treee55ccef79ff78d44d9c3e1595d718842a15e869e
parent079e0819bc4a0dde6ce427757130db85216167de
Defer call to InitSections until after MCContext has been initialized. If
InitSections is called before the MCContext is initialized it could cause
duplicate temporary symbols to be emitted later (after context initialization
resets the temporary label counter).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169785 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/LLVMTargetMachine.cpp
lib/MC/MCStreamer.cpp