Add a note for the macho streamer and remove a used of the mangler from the soon...
authorNate Begeman <natebegeman@mac.com>
Sun, 17 Jan 2010 03:49:01 +0000 (03:49 +0000)
committerNate Begeman <natebegeman@mac.com>
Sun, 17 Jan 2010 03:49:01 +0000 (03:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93670 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachOWriter.cpp
lib/MC/MCMachOStreamer.cpp

index bd9c9ff29ea40ae58750bd7b1eb54e8741af390d..e8bbe217b8622b8536f52928c94a3fea4dbf4992 100644 (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;
 }
index 828b92a74478980d439010b2efbcb69b59c9f7cb..5f120cc6506ace0a72969ffb793430b361a52d35 100644 (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);