From 61b5f3e12c0ab5dd2e8b98bb827855420bb9869b Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 14 Jul 2009 02:47:58 +0000 Subject: Use LLVM mangler to get mangled name for debug info entry. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75589 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index b516da9a72..9ac68718a5 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -52,7 +52,9 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CompileOptions &compileOpts, Runtime = CreateMacObjCRuntime(*this); // If debug info generation is enabled, create the CGDebugInfo object. - DebugInfo = CompileOpts.DebugInfo ? new CGDebugInfo(this) : 0; + DebugInfo = 0; + if (CompileOpts.DebugInfo) + DebugInfo = new CGDebugInfo(this, &Context.Target); } CodeGenModule::~CodeGenModule() { -- cgit v1.2.3-18-g5258