summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-10 21:49:37 +0000
committerEric Christopher <echristo@gmail.com>2013-09-10 21:49:37 +0000
commit13b99d2abab1aa4f70639b4fec8834110d84ee22 (patch)
tree9ff4917a82d1790a4b74fe934bf8d8315e804796 /llvm/lib/CodeGen
parent84c6b3d293d91e9d8403108d5069f7b6e6a57afa (diff)
downloadbcm5719-llvm-13b99d2abab1aa4f70639b4fec8834110d84ee22.tar.gz
bcm5719-llvm-13b99d2abab1aa4f70639b4fec8834110d84ee22.zip
Hoist section call out of loop.
llvm-svn: 190440
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 5056ecabffd..6f6a7de5daa 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/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),
OpenPOWER on IntegriCloud