diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-07-01 18:07:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-07-01 18:07:22 +0000 |
commit | be822edf032854e4a5439f7c64cab95861cfbd8c (patch) | |
tree | 16e13d872d6c4b7e9cdd6511125e0db9918a1a4a /clang/lib/CodeGen/CGDecl.cpp | |
parent | d51dea67b3b75e96c0362eb6c559cded341c0f4d (diff) | |
download | llvm-be822edf032854e4a5439f7c64cab95861cfbd8c.zip llvm-be822edf032854e4a5439f7c64cab95861cfbd8c.tar.gz llvm-be822edf032854e4a5439f7c64cab95861cfbd8c.tar.bz2 |
Revert "[DebugInfo] Fix debug info generation for function static variables, typedefs, and records"
Caused PR24008.
This reverts commit r241154.
llvm-svn: 241177
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index 7550266..07dbce4 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/lib/CodeGen/CGDecl.cpp @@ -81,8 +81,10 @@ void CodeGenFunction::EmitDecl(const Decl &D) { case Decl::UsingShadow: llvm_unreachable("Declaration should not be in declstmts!"); case Decl::Function: // void X(); + case Decl::Record: // struct/union/class X; case Decl::Enum: // enum X; case Decl::EnumConstant: // enum ? { X = ? } + case Decl::CXXRecord: // struct/union/class X; [C++] case Decl::StaticAssert: // static_assert(X, ""); [C++0x] case Decl::Label: // __label__ x; case Decl::Import: @@ -91,12 +93,6 @@ void CodeGenFunction::EmitDecl(const Decl &D) { // None of these decls require codegen support. return; - case Decl::CXXRecord: // struct/union/class X; [C++] - case Decl::Record: // struct/union/class X; - if (CGDebugInfo *DI = getDebugInfo()) - DI->recordDeclarationLexicalScope(D); - return; - case Decl::NamespaceAlias: if (CGDebugInfo *DI = getDebugInfo()) DI->EmitNamespaceAlias(cast<NamespaceAliasDecl>(D)); @@ -121,9 +117,6 @@ void CodeGenFunction::EmitDecl(const Decl &D) { const TypedefNameDecl &TD = cast<TypedefNameDecl>(D); QualType Ty = TD.getUnderlyingType(); - if (CGDebugInfo *DI = getDebugInfo()) - DI->recordDeclarationLexicalScope(D); - if (Ty->isVariablyModifiedType()) EmitVariablyModifiedType(Ty); } |