summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-21 01:02:18 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-21 01:02:18 +0000
commit70ab3d2af667a97523d2ab4f03b0d2f978693f47 (patch)
tree919c0b0fac56a22397ceba0d966be3dd0aec310f /llvm/utils
parentc32f3faae9c7128dec280b8274de31400df5e704 (diff)
downloadbcm5719-llvm-70ab3d2af667a97523d2ab4f03b0d2f978693f47.tar.gz
bcm5719-llvm-70ab3d2af667a97523d2ab4f03b0d2f978693f47.zip
AsmParser/Writer: Handle symbolic constants in DI 'flags:'
Parse (and write) symbolic constants in debug info `flags:` fields. This prevents a readability (and CHECK-ability) regression with the new debug info hierarchy. Old (well, current) assembly, with pretty-printing: !{!"...\\0016387", ...} ; ... [public] [rvalue reference] Flags field without this change: !MDDerivedType(flags: 16387, ...) Flags field with this change: !MDDerivedType(flags: DIFlagPublic | DIFlagRValueReference, ...) As discussed in the review thread, this isn't a final state. Most of these flags correspond to `DW_AT_` symbolic constants, and we might eventually want to support arbitrary attributes in some form. However, as it stands now, some of the flags correspond to other concepts (like `FlagStaticMember`); until things are refactored this is the simplest way to move forward without regressing assembly. llvm-svn: 230111
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/vim/llvm.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/vim/llvm.vim b/llvm/utils/vim/llvm.vim
index 6b4b8bbd12b..913d0f5f1c3 100644
--- a/llvm/utils/vim/llvm.vim
+++ b/llvm/utils/vim/llvm.vim
@@ -82,6 +82,7 @@ syn match llvmConstant /\<DW_ATE_[a-zA-Z_]\+\>/
syn match llvmConstant /\<DW_OP_[a-zA-Z0-9_]\+\>/
syn match llvmConstant /\<DW_LANG_[a-zA-Z0-9_]\+\>/
syn match llvmConstant /\<DW_VIRTUALITY_[a-z_]\+\>/
+syn match llvmConstant /\<DIFlag[A-Za-z]\+\>/
" Syntax-highlight dejagnu test commands.
syn match llvmSpecialComment /;\s*RUN:.*$/
OpenPOWER on IntegriCloud