aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CBackend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-12 20:47:28 +0000
committerChris Lattner <sabre@nondot.org>2010-03-12 20:47:28 +0000
commit2a2a67300bbc6da884a2b12d1f97c92ea7ebbd14 (patch)
treef226d1a01ab356fc4872fb40d069d8e1d32929a1 /lib/Target/CBackend
parente452eaff91d80d543825e5b689744bd31e59e426 (diff)
downloadexternal_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/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index 6b9ae4f..b1ba0d2 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -1734,7 +1734,7 @@ bool CWriter::doInitialization(Module &M) {
#endif
TAsm = new CBEMCAsmInfo();
TCtx = new MCContext(*TAsm);
- Mang = new Mangler(*TCtx);
+ Mang = new Mangler(*TCtx, *TD);
// Keep track of which functions are static ctors/dtors so they can have
// an attribute added to their prototypes.