mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-10 02:38:50 +00:00
prune some redundant #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bea2c95704
commit
cda7f78233
@ -9,12 +9,10 @@
|
|||||||
|
|
||||||
#include "llvm/MC/MCStreamer.h"
|
#include "llvm/MC/MCStreamer.h"
|
||||||
|
|
||||||
#include "llvm/ADT/DenseMap.h"
|
|
||||||
#include "llvm/MC/MCAssembler.h"
|
#include "llvm/MC/MCAssembler.h"
|
||||||
#include "llvm/MC/MCContext.h"
|
#include "llvm/MC/MCContext.h"
|
||||||
#include "llvm/MC/MCSection.h"
|
#include "llvm/MC/MCSection.h"
|
||||||
#include "llvm/MC/MCSymbol.h"
|
#include "llvm/MC/MCSymbol.h"
|
||||||
#include "llvm/MC/MCValue.h"
|
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -100,7 +98,9 @@ public:
|
|||||||
void MCMachOStreamer::SwitchSection(const MCSection *Section) {
|
void MCMachOStreamer::SwitchSection(const MCSection *Section) {
|
||||||
assert(Section && "Cannot switch to a null section!");
|
assert(Section && "Cannot switch to a null section!");
|
||||||
|
|
||||||
if (Section != CurSection) {
|
// If already in this section, then this is a noop.
|
||||||
|
if (Section == CurSection) return;
|
||||||
|
|
||||||
CurSection = Section;
|
CurSection = Section;
|
||||||
MCSectionData *&Entry = SectionMap[Section];
|
MCSectionData *&Entry = SectionMap[Section];
|
||||||
|
|
||||||
@ -109,7 +109,6 @@ void MCMachOStreamer::SwitchSection(const MCSection *Section) {
|
|||||||
|
|
||||||
CurSectionData = Entry;
|
CurSectionData = Entry;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) {
|
void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) {
|
||||||
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
|
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user