diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-10 21:49:37 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-10 21:49:37 +0000 |
commit | 21a6a5013d30d0515bc36da1ef49fa7c2e838f16 (patch) | |
tree | 7a6fe3ff0e433a069a2111b5fee69201e25c7f8b /lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 3014066976dd24d8ca565dd5fabe4d5a6144574f (diff) | |
download | external_llvm-21a6a5013d30d0515bc36da1ef49fa7c2e838f16.zip external_llvm-21a6a5013d30d0515bc36da1ef49fa7c2e838f16.tar.gz external_llvm-21a6a5013d30d0515bc36da1ef49fa7c2e838f16.tar.bz2 |
Hoist section call out of loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 5056eca..6f6a7de 100644 --- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -2284,6 +2284,7 @@ void DwarfDebug::emitAccelTypes() { /// void DwarfDebug::emitDebugPubNames() { const MCSection *ISec = Asm->getObjFileLowering().getDwarfInfoSection(); + const MCSection *PSec = Asm->getObjFileLowering().getDwarfPubNamesSection(); typedef DenseMap<const MDNode*, CompileUnit*> CUMapType; for (CUMapType::iterator I = CUMap.begin(), E = CUMap.end(); I != E; ++I) { @@ -2294,8 +2295,7 @@ void DwarfDebug::emitDebugPubNames() { continue; // Start the dwarf pubnames section. - Asm->OutStreamer - .SwitchSection(Asm->getObjFileLowering().getDwarfPubNamesSection()); + Asm->OutStreamer.SwitchSection(PSec); Asm->OutStreamer.AddComment("Length of Public Names Info"); Asm->EmitLabelDifference(Asm->GetTempSymbol("pubnames_end", ID), |