diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-14 21:31:22 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-14 21:31:22 +0000 |
commit | 6dba432c7b862c2219e5d6e52b0cd188fbf84b01 (patch) | |
tree | 1342be3f46a2fca0186d1a4b65eb8dc4b0c5aa70 /lib/CodeGen/CodeGenModule.cpp | |
parent | 60fbe8f79838bff41fe9f5ed506ea9bc89d5d1df (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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() { |