From 9be7b204010ac5794dcadbe37379a267775d7d64 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. llvm-svn: 75684 --- clang/lib/CodeGen/CodeGenModule.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 9ac68718a5c1..b516da9a7284 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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