summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/diglobalvariable.ll
diff options
context:
space:
mode:
authorVictor Leschuk <vleschuk@accesssoftek.com>2016-10-20 00:13:12 +0000
committerVictor Leschuk <vleschuk@accesssoftek.com>2016-10-20 00:13:12 +0000
commit2ede126b1b3fae52cddece5cf1f75b474a9c7932 (patch)
tree0733b4b810dc87c85fda4f44bfa3e74b59cc1e2f /llvm/test/Assembler/diglobalvariable.ll
parent7edf93bc5b2bbed4ff9b34ac5126eb210fbbff3c (diff)
downloadbcm5719-llvm-2ede126b1b3fae52cddece5cf1f75b474a9c7932.tar.gz
bcm5719-llvm-2ede126b1b3fae52cddece5cf1f75b474a9c7932.zip
DebugInfo: preparation to implement DW_AT_alignment
- Add alignment attribute to DIVariable family - Modify bitcode format to match new DIVariable representation - Update tests to match these changes (also add bitcode upgrade test) - Expect that frontend passes non-zero align value only when it is not default (was forcibly aligned by alignas()/_Alignas()/__atribute__(aligned()) Differential Revision: https://reviews.llvm.org/D25073 llvm-svn: 284678
Diffstat (limited to 'llvm/test/Assembler/diglobalvariable.ll')
-rw-r--r--llvm/test/Assembler/diglobalvariable.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/Assembler/diglobalvariable.ll b/llvm/test/Assembler/diglobalvariable.ll
index afaa5f84960..33c2ec3a762 100644
--- a/llvm/test/Assembler/diglobalvariable.ll
+++ b/llvm/test/Assembler/diglobalvariable.ll
@@ -12,10 +12,10 @@
!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
!4 = distinct !{}
-; CHECK: !5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false)
+; CHECK: !5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, align: 32)
!5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0,
file: !2, line: 7, type: !3, isLocal: true,
- isDefinition: false)
+ isDefinition: false, align: 32)
; CHECK: !6 = !DIGlobalVariable(name: "foo", scope: !0, isLocal: false, isDefinition: true, expr: !7)
; CHECK: !7 = !DIExpression(DW_OP_constu, 42, DW_OP_stack_value)
OpenPOWER on IntegriCloud