summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-11-18 15:53:22 +0100
committerSam McCall <sam.mccall@gmail.com>2019-11-18 15:53:22 +0100
commitd27a16eb392f39f9ee04ff5194b1eff3e189e6f8 (patch)
tree07cde0e127245a20761b95478ba7700bf78ef32c /clang/lib/CodeGen/CGDebugInfo.cpp
parentdea8f3b0a4eabb930f605343ff5e3e39a1791f86 (diff)
downloadbcm5719-llvm-d27a16eb392f39f9ee04ff5194b1eff3e189e6f8.tar.gz
bcm5719-llvm-d27a16eb392f39f9ee04ff5194b1eff3e189e6f8.zip
Revert "[DWARF5]Addition of alignment atrribute in typedef DIE."
This reverts commit 423f541c1a322963cf482683fe9777ef0692082d, which breaks llvm-c ABI.
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index f204b971692..75c4b2ae233 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1127,8 +1127,7 @@ llvm::DIType *CGDebugInfo::CreateType(const TemplateSpecializationType *Ty,
SourceLocation Loc = AliasDecl->getLocation();
return DBuilder.createTypedef(Src, OS.str(), getOrCreateFile(Loc),
getLineNumber(Loc),
- getDeclContextDescriptor(AliasDecl),
- /* Alignment */ None);
+ getDeclContextDescriptor(AliasDecl));
}
llvm::DIType *CGDebugInfo::CreateType(const TypedefType *Ty,
@@ -1144,10 +1143,9 @@ llvm::DIType *CGDebugInfo::CreateType(const TypedefType *Ty,
SourceLocation Loc = Ty->getDecl()->getLocation();
// Typedefs are derived from some other type.
- return DBuilder.createTypedef(
- Underlying, Ty->getDecl()->getName(), getOrCreateFile(Loc),
- getLineNumber(Loc), getDeclContextDescriptor(Ty->getDecl()),
- getDeclAlignIfRequired(Ty->getDecl(), CGM.getContext()));
+ return DBuilder.createTypedef(Underlying, Ty->getDecl()->getName(),
+ getOrCreateFile(Loc), getLineNumber(Loc),
+ getDeclContextDescriptor(Ty->getDecl()));
}
static unsigned getDwarfCC(CallingConv CC) {
@@ -2326,8 +2324,7 @@ llvm::DIType *CGDebugInfo::CreateType(const ObjCTypeParamType *Ty,
return DBuilder.createTypedef(
getOrCreateType(Ty->getDecl()->getUnderlyingType(), Unit),
Ty->getDecl()->getName(), getOrCreateFile(Loc), getLineNumber(Loc),
- getDeclContextDescriptor(Ty->getDecl()),
- /* Alignment */ None);
+ getDeclContextDescriptor(Ty->getDecl()));
}
/// \return true if Getter has the default name for the property PD.
OpenPOWER on IntegriCloud