From 6dba432c7b862c2219e5d6e52b0cd188fbf84b01 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 14 Jul 2009 21:31:22 +0000 Subject: Revert 75648 for now. It is causing test failures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75684 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/CodeGen/CodeGenModule.cpp') diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 9ac68718a5..b516da9a72 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -52,9 +52,7 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CompileOptions &compileOpts, Runtime = CreateMacObjCRuntime(*this); // If debug info generation is enabled, create the CGDebugInfo object. - DebugInfo = 0; - if (CompileOpts.DebugInfo) - DebugInfo = new CGDebugInfo(this, &Context.Target); + DebugInfo = CompileOpts.DebugInfo ? new CGDebugInfo(this) : 0; } CodeGenModule::~CodeGenModule() { -- cgit v1.2.3-18-g5258