[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)
commit76f9869bf20034d5d722d29999e845a1f9c0505d
tree72265ed9e367a9109864b5d4c4a61c1b837f5aef
parentc86ba58188332c5482150bf337696888cf91355c
[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

llvm-svn: 374798
clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
clang/test/InterfaceStubs/inline.c
clang/test/InterfaceStubs/object.c
clang/test/InterfaceStubs/windows.cpp [new file with mode: 0644]