diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-15 23:09:46 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-15 23:09:46 +0000 |
commit | 8fd6499a97740da757e9a4be37d3432e61128f9e (patch) | |
tree | 49e7cd9e25847639828a81a52e7a70592f139096 | |
parent | c5dded5f990a03d818f1b6732bcfc593eab8b4da (diff) | |
download | bcm5719-llvm-8fd6499a97740da757e9a4be37d3432e61128f9e.tar.gz bcm5719-llvm-8fd6499a97740da757e9a4be37d3432e61128f9e.zip |
Set "optimization is ON" and supply other optional parameters. This helps codegenerator preserve info in case the symbol is deleted.
llvm-svn: 108471
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index d1de84fef7b..33e299340d3 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -601,7 +601,8 @@ CGDebugInfo::CreateCXXMemberFunction(const CXXMethodDecl *Method, MethodTy, /*isLocalToUnit=*/false, /* isDefintion=*/ false, Virtuality, VIndex, ContainingType, - Method->isImplicit()); + Method->isImplicit(), + CGM.getLangOptions().Optimize); // Don't cache ctors or dtors since we have to emit multiple functions for // a single ctor or dtor. @@ -1335,7 +1336,10 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, llvm::DISubprogram SP = DebugFactory.CreateSubprogram(Unit, Name, Name, LinkageName, Unit, LineNo, getOrCreateType(FnType, Unit), - Fn->hasInternalLinkage(), true/*definition*/); + Fn->hasInternalLinkage(), true/*definition*/, + 0, 0, llvm::DIType(), + D->isImplicit(), + CGM.getLangOptions().Optimize, Fn); // Push function on region stack. llvm::MDNode *SPN = SP; |