diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-24 03:54:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-01-24 03:54:40 +0000 |
commit | a1f7c26cc8028c73842065e33f0acdee40cf868d (patch) | |
tree | e39b50ca509276861f81630b2a870f4ac6f964e5 /lib/CodeGen | |
parent | b385559db946cf0838494409dc98183f3989f8a8 (diff) | |
download | llvm-a1f7c26cc8028c73842065e33f0acdee40cf868d.tar.gz llvm-a1f7c26cc8028c73842065e33f0acdee40cf868d.tar.bz2 llvm-a1f7c26cc8028c73842065e33f0acdee40cf868d.tar.xz |
Simplify the logic for deciding when to initialize the sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/LLVMTargetMachine.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 45f5f58345..cdff074e97 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -163,7 +163,7 @@ bool AsmPrinter::doInitialization(Module &M) { const_cast<TargetLoweringObjectFile&>(getObjFileLowering()) .Initialize(OutContext, TM); - OutStreamer.InitStreamer(); + OutStreamer.InitSections(false); Mang = new Mangler(TM.getDataLayout()); diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp index 2a92e2312a..f30c515335 100644 --- a/lib/CodeGen/LLVMTargetMachine.cpp +++ b/lib/CodeGen/LLVMTargetMachine.cpp @@ -208,7 +208,6 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM, *Context, *MAB, Out, MCE, hasMCRelaxAll(), hasMCNoExecStack())); - AsmStreamer.get()->setAutoInitSections(true); break; } case CGFT_Null: |