diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-12 20:47:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-12 20:47:28 +0000 |
commit | c7b46f9d9c715e70b1a2af87a66fcdb693ba1bbc (patch) | |
tree | 67597a23c36c24ff507d9d15c1473a93ee3eb332 /llvm/lib/CodeGen | |
parent | 892ac21f067586300ab049b4d34d22149ff1274c (diff) | |
download | bcm5719-llvm-c7b46f9d9c715e70b1a2af87a66fcdb693ba1bbc.tar.gz bcm5719-llvm-c7b46f9d9c715e70b1a2af87a66fcdb693ba1bbc.zip |
give Mangler access to TargetData.
llvm-svn: 98378
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/ELFWriter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 0a283931eda..68da74581b9 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -104,7 +104,7 @@ bool AsmPrinter::doInitialization(Module &M) { const_cast<TargetLoweringObjectFile&>(getObjFileLowering()) .Initialize(OutContext, TM); - Mang = new Mangler(OutContext); + Mang = new Mangler(OutContext, *TM.getTargetData()); // 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 d73581a3377..eda167cb54a 100644 --- a/llvm/lib/CodeGen/ELFWriter.cpp +++ b/llvm/lib/CodeGen/ELFWriter.cpp @@ -109,7 +109,7 @@ bool ELFWriter::doInitialization(Module &M) { // Initialize TargetLoweringObjectFile. const_cast<TargetLoweringObjectFile&>(TLOF).Initialize(OutContext, TM); - Mang = new Mangler(OutContext); + Mang = new Mangler(OutContext, *TM.getTargetData()); // ELF Header // ---------- |