diff options
author | Nate Begeman <natebegeman@mac.com> | 2010-01-17 03:49:01 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2010-01-17 03:49:01 +0000 |
commit | 6f24a0a603d7edba4995153092ff841703df6824 (patch) | |
tree | 9bcbbb026c8dbe7889c8576b13dd5736351e1df9 /lib | |
parent | 4eb66b8d0e41f4fa643d765efc5a9d2124f0c387 (diff) | |
download | external_llvm-6f24a0a603d7edba4995153092ff841703df6824.zip external_llvm-6f24a0a603d7edba4995153092ff841703df6824.tar.gz external_llvm-6f24a0a603d7edba4995153092ff841703df6824.tar.bz2 |
Add a note for the macho streamer and remove a used of the mangler from the soon to be defunct machowriter pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/MachOWriter.cpp | 6 | ||||
-rw-r--r-- | lib/MC/MCMachOStreamer.cpp | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp index bd9c9ff..e8bbe21 100644 --- a/lib/CodeGen/MachOWriter.cpp +++ b/lib/CodeGen/MachOWriter.cpp @@ -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; } diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp index 828b92a..5f120cc 100644 --- a/lib/MC/MCMachOStreamer.cpp +++ b/lib/MC/MCMachOStreamer.cpp @@ -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); |