[Mangle] Add flag to asm labels to disable '\01' prefixing
authorVedant Kumar <vsk@apple.com>
Wed, 25 Sep 2019 18:00:31 +0000 (18:00 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 25 Sep 2019 18:00:31 +0000 (18:00 +0000)
commitf6bc251274f39dee5d09f668a56922c88bd027d8
tree228442b512d620525a646351763c472c46936f87
parent4de7ae65325613d8ec75c4cb79730e522a7046c4
[Mangle] Add flag to asm labels to disable '\01' prefixing

LLDB synthesizes decls using asm labels. These decls cannot have a mangle
different than the one specified in the label name. I.e., the '\01' prefix
should not be added.

Fixes an expression evaluation failure in lldb's TestVirtual.py on iOS.

rdar://45827323

Differential Revision: https://reviews.llvm.org/D67774

llvm-svn: 372903
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/AST/Mangle.cpp
clang/lib/Sema/SemaDecl.cpp
clang/unittests/AST/DeclTest.cpp
lldb/source/Symbol/ClangASTContext.cpp