summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-17 18:22:35 +0000
committerChris Lattner <sabre@nondot.org>2010-01-17 18:22:35 +0000
commitb4ffc894e6a6d7ddba73e8b3b8ffdeba546e33db (patch)
tree7d4f572b24b4b7f8143a9db3827cd9eda25d5165 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent915ad96b401c51ccf2cecf9d4b6af777b7d445da (diff)
downloadbcm5719-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/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 1 insertions, 2 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);
OpenPOWER on IntegriCloud