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 | 2a2a67300bbc6da884a2b12d1f97c92ea7ebbd14 (patch) | |
| tree | f226d1a01ab356fc4872fb40d069d8e1d32929a1 /lib/CodeGen | |
| parent | e452eaff91d80d543825e5b689744bd31e59e426 (diff) | |
| download | external_llvm-2a2a67300bbc6da884a2b12d1f97c92ea7ebbd14.zip external_llvm-2a2a67300bbc6da884a2b12d1f97c92ea7ebbd14.tar.gz external_llvm-2a2a67300bbc6da884a2b12d1f97c92ea7ebbd14.tar.bz2 | |
give Mangler access to TargetData.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 | ||||
| -rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 0a28393..68da745 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index d73581a..eda167c 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/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 // ---------- |
