diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-14 02:47:58 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-14 02:47:58 +0000 |
commit | 61b5f3e12c0ab5dd2e8b98bb827855420bb9869b (patch) | |
tree | f8e0575a514236c69dc844c9a52a4d053c1ad25f /lib/CodeGen/CodeGenModule.cpp | |
parent | 9df4bb32dfafd963396155df8472904dde6a6827 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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() { |