summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Dwarf.cpp
diff options
context:
space:
mode:
authorVictor Leschuk <vleschuk@accesssoftek.com>2016-10-26 11:59:03 +0000
committerVictor Leschuk <vleschuk@accesssoftek.com>2016-10-26 11:59:03 +0000
commit3c9899842bf4d0a69a6346026f60f070ac92016b (patch)
treea6e1d39aeb115cc03019d956290b0eb396e4945a /llvm/lib/Support/Dwarf.cpp
parent851ce0ef004c8e376dcc69c168b17dfb8640cc3f (diff)
downloadbcm5719-llvm-3c9899842bf4d0a69a6346026f60f070ac92016b.tar.gz
bcm5719-llvm-3c9899842bf4d0a69a6346026f60f070ac92016b.zip
DebugInfo: support for DWARFv5 DW_AT_alignment attribute
* Assume that clang passes non-zero alignment value to DIBuilder only in case when it was forced by C++11 'alignas', C11 '_Alignas' or compiler attribute '__attribute__((aligned (N)))'. * Emit DW_AT_alignment if alignment is specified for type/object. Differential Revision: https://reviews.llvm.org/D24425 llvm-svn: 285189
Diffstat (limited to 'llvm/lib/Support/Dwarf.cpp')
-rw-r--r--llvm/lib/Support/Dwarf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp
index 65050fde381..b0b2f0ad0eb 100644
--- a/llvm/lib/Support/Dwarf.cpp
+++ b/llvm/lib/Support/Dwarf.cpp
@@ -149,6 +149,8 @@ StringRef llvm::dwarf::AttributeString(unsigned Attribute) {
case DW_AT_reference: return "DW_AT_reference";
case DW_AT_rvalue_reference: return "DW_AT_rvalue_reference";
case DW_AT_noreturn: return "DW_AT_noreturn";
+ case DW_AT_alignment:
+ return "DW_AT_alignment";
case DW_AT_MIPS_loop_begin: return "DW_AT_MIPS_loop_begin";
case DW_AT_MIPS_tail_loop_begin: return "DW_AT_MIPS_tail_loop_begin";
case DW_AT_MIPS_epilog_begin: return "DW_AT_MIPS_epilog_begin";
OpenPOWER on IntegriCloud