]> granicus.if.org Git - clang/commit
[clang][IFS] Escape mangled names so MS ABI doesn't break YAML parsing.
authorPuyan Lotfi <puyan@puyan.org>
Mon, 14 Oct 2019 18:03:03 +0000 (18:03 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Mon, 14 Oct 2019 18:03:03 +0000 (18:03 +0000)
commiteec4f9b8c3ea0eb6dd6e044d04c4ec1c4d6c01df
tree4fc3793970baee5a182023f34044e5524a4a4a71
parent117352af511705b4acc5e92e48e51e7bf9beb5b6
[clang][IFS] Escape mangled names so  MS ABI doesn't break YAML parsing.

Microsoft's ABI mangles names differently than Itanium and this breaks the LLVM
yaml parser unless the name is escaped in quotes. Quotes are being added to the
mangled names of the IFS file generation so that llvm-ifs doesn't break when
Windows triples are passed to the driver.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/InterfaceStubFunctionsConsumer.cpp
test/InterfaceStubs/inline.c
test/InterfaceStubs/object.c
test/InterfaceStubs/windows.cpp [new file with mode: 0644]