projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MC/AsmParser: Report .stabs directive as unsupported.
[oota-llvm.git]
/
lib
/
MC
/
MCObjectStreamer.cpp
diff --git
a/lib/MC/MCObjectStreamer.cpp
b/lib/MC/MCObjectStreamer.cpp
index eed4e7bd4f67db91af1400cef2cdf0d76bbc09d0..8a481e8bb3052eef262cb45d6863488d49538e74 100644
(file)
--- a/
lib/MC/MCObjectStreamer.cpp
+++ b/
lib/MC/MCObjectStreamer.cpp
@@
-17,9
+17,12
@@
using namespace llvm;
MCObjectStreamer::MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB,
using namespace llvm;
MCObjectStreamer::MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB,
- raw_ostream &_OS, MCCodeEmitter *_Emitter)
+ raw_ostream &_OS, MCCodeEmitter *_Emitter,
+ bool _PadSectionToAlignment)
: MCStreamer(Context), Assembler(new MCAssembler(Context, TAB,
: MCStreamer(Context), Assembler(new MCAssembler(Context, TAB,
- *_Emitter, _OS)),
+ *_Emitter,
+ _PadSectionToAlignment,
+ _OS)),
CurSectionData(0)
{
}
CurSectionData(0)
{
}
@@
-77,6
+80,7
@@
void MCObjectStreamer::SwitchSection(const MCSection *Section) {
// If already in this section, then this is a noop.
if (Section == CurSection) return;
// If already in this section, then this is a noop.
if (Section == CurSection) return;
+ PrevSection = CurSection;
CurSection = Section;
CurSectionData = &getAssembler().getOrCreateSectionData(*Section);
}
CurSection = Section;
CurSectionData = &getAssembler().getOrCreateSectionData(*Section);
}