diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-17 18:22:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-17 18:22:35 +0000 |
| commit | b4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db (patch) | |
| tree | 7d4f572b24b4b7f8143a9db3827cd9eda25d5165 /llvm/lib/CodeGen | |
| parent | 915ad96b401c51ccf2cecf9d4b6af777b7d445da (diff) | |
| download | bcm5719-llvm-b4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db.tar.gz bcm5719-llvm-b4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db.zip | |
now that mangler is in libtarget, it can use MCAsmInfo instead of clients
having to pass various fields from it in. Simplify.
llvm-svn: 93686
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/ELFWriter.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 82c176546e3..bb1f1d31d14 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -101,8 +101,7 @@ bool AsmPrinter::doInitialization(Module &M) { const_cast<TargetLoweringObjectFile&>(getObjFileLowering()) .Initialize(OutContext, TM); - Mang = new Mangler(M, MAI->getGlobalPrefix(), MAI->getPrivateGlobalPrefix(), - MAI->getLinkerPrivateGlobalPrefix()); + Mang = new Mangler(*MAI); // Allow the target to emit any magic that it wants at the start of the file. EmitStartOfAsmFile(M); diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp index 7af0aefb734..d1920d0c2df 100644 --- a/llvm/lib/CodeGen/ELFWriter.cpp +++ b/llvm/lib/CodeGen/ELFWriter.cpp @@ -119,7 +119,7 @@ bool ELFWriter::doInitialization(Module &M) { // Initialize TargetLoweringObjectFile. const_cast<TargetLoweringObjectFile&>(TLOF).Initialize(OutContext, TM); - Mang = new Mangler(M); + Mang = new Mangler(*MAI); // ELF Header // ---------- |

