diff options
author | Devang Patel <dpatel@apple.com> | 2010-06-05 01:14:40 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-06-05 01:14:40 +0000 |
commit | 44eeebaa53c0137447f9bac5f55755e480d59597 (patch) | |
tree | 57053724db1bcaa4ec332b1de683969a035cffe8 /lib/CodeGen/CGDebugInfo.cpp | |
parent | bf1a028246d884a540aeafa38e89be59a269b072 (diff) |
Preserve type info for local variables in optimized builds.
llvm-gcc enabled this couple of weeks ago.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index c9bcb1b7e0..6025e09e7a 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1477,7 +1477,7 @@ void CGDebugInfo::EmitDeclare(const VarDecl *VD, unsigned Tag, llvm::DIVariable D = DebugFactory.CreateVariable(Tag, llvm::DIDescriptor(RegionStack.back()), VD->getName(), - Unit, Line, Ty); + Unit, Line, Ty, CGM.getLangOptions().Optimize); // Insert an llvm.dbg.declare into the current block. llvm::Instruction *Call = DebugFactory.InsertDeclare(Storage, D, Builder.GetInsertBlock()); |