mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Hoist section call out of loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190440 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3014066976
commit
21a6a5013d
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user