1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

prune some redundant #includes.

llvm-svn: 79746
This commit is contained in:
Chris Lattner 2009-08-22 19:35:08 +00:00
parent d786e8929e
commit 29213a76e4

View File

@ -9,12 +9,10 @@
#include "llvm/MC/MCStreamer.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSection.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/ErrorHandling.h"
using namespace llvm;
@ -99,16 +97,17 @@ public:
void MCMachOStreamer::SwitchSection(const MCSection *Section) {
assert(Section && "Cannot switch to a null section!");
// If already in this section, then this is a noop.
if (Section == CurSection) return;
CurSection = Section;
MCSectionData *&Entry = SectionMap[Section];
if (Section != CurSection) {
CurSection = Section;
MCSectionData *&Entry = SectionMap[Section];
if (!Entry)
Entry = new MCSectionData(*Section, &Assembler);
if (!Entry)
Entry = new MCSectionData(*Section, &Assembler);
CurSectionData = Entry;
}
CurSectionData = Entry;
}
void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) {