Add a note for the macho streamer and remove a used of the mangler from the soon to be defunct machowriter pass.

llvm-svn: 93670
This commit is contained in:
Nate Begeman 2010-01-17 03:49:01 +00:00
parent 3fbf36d0b4
commit 660d979ad9
2 changed files with 2 additions and 6 deletions

View File

@ -69,9 +69,6 @@ MachOWriter::~MachOWriter() {
}
bool MachOWriter::doInitialization(Module &M) {
Mang = new Mangler(M, MAI->getGlobalPrefix(), MAI->getPrivateGlobalPrefix(),
MAI->getLinkerPrivateGlobalPrefix());
// Initialize TargetLoweringObjectFile.
TM.getTargetLowering()->getObjFileLowering().Initialize(OutContext, TM);
@ -81,9 +78,6 @@ bool MachOWriter::doInitialization(Module &M) {
/// doFinalization - Now that the module has been completely processed, emit
/// the Mach-O file to 'O'.
bool MachOWriter::doFinalization(Module &M) {
// Release the name mangler object.
delete Mang; Mang = 0;
OutStreamer.Finish();
return false;
}

View File

@ -353,6 +353,8 @@ void MCMachOStreamer::EmitInstruction(const MCInst &Inst) {
if (!Emitter)
llvm_unreachable("no code emitter available!");
// FIXME: Emitting an instruction should cause S_ATTR_SOME_INSTRUCTIONS to
// be set for the current section.
// FIXME: Relocations!
SmallString<256> Code;
raw_svector_ostream VecOS(Code);