aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-05-29 20:37:19 +0000
committerBill Wendling <isanbard@gmail.com>2013-05-29 20:37:19 +0000
commitcc5a882c96af6e36bc029b7ff69f62f94e2d041d (patch)
treec26c2846093ad1eee8ab7a5ccb5998af8019a392 /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentaae0fa998af0f65221d7b98630162be6d88f05dc (diff)
downloadexternal_llvm-cc5a882c96af6e36bc029b7ff69f62f94e2d041d.zip
external_llvm-cc5a882c96af6e36bc029b7ff69f62f94e2d041d.tar.gz
external_llvm-cc5a882c96af6e36bc029b7ff69f62f94e2d041d.tar.bz2
Don't reach into the middle of TargetMachine and cache one of its ivars.
Not only does this break encapsulation, it's gross. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7ad4f57..5a83ed6 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -163,7 +163,7 @@ bool AsmPrinter::doInitialization(Module &M) {
const_cast<TargetLoweringObjectFile&>(getObjFileLowering())
.Initialize(OutContext, TM);
- Mang = new Mangler(OutContext, *TM.getDataLayout());
+ Mang = new Mangler(OutContext, &TM);
// Allow the target to emit any magic that it wants at the start of the file.
EmitStartOfAsmFile(M);