Rafael Espindola
84b0664388
Set dso_local on string literals.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@328040 91177308-0d34-0410-b5e6-96231b3b80d8
2018-03-20 20:42:55 +00:00
Reid Kleckner
c45a02c8a8
[MS] Don't escape MS C++ names with \01
...
It is not needed after LLVM r327734. Now it will be easier to copy-paste
IR symbol names from Clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327738 91177308-0d34-0410-b5e6-96231b3b80d8
2018-03-16 20:36:49 +00:00
Richard Smith
0d1b93e943
MSVC seems to use (void) in __FUNCSIG__ for a zero-parameter function even in C++. Follow suit.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291489 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-09 22:16:16 +00:00
Richard Smith
265da68fe2
PR31587: Fix handling of __FUNCSIG__ in C.
...
Fix crash if __FUNCSIG__ is used in a function without a prototype, and use
"(void)" as parameter list instead of "()" for a function with a no-parameters
prototype, matching MSVC's observed behavior.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291484 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-09 21:40:40 +00:00
Alexey Bataev
b800824f17
Fix for bug http://llvm.org/PR17427 .
...
Assertion failed: "Computed __func__ length differs from type!"
Reworked PredefinedExpr representation with internal StringLiteral field for function declaration.
Differential Revision: http://reviews.llvm.org/D5365
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219393 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-09 08:45:04 +00:00
Reid Kleckner
679a08c38c
Fix the funcsig test with an explicit triple
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205781 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-08 18:28:09 +00:00
Reid Kleckner
1c8af74744
Add support for MSVC's __FUNCSIG__
...
It is very similar to GCC's __PRETTY_FUNCTION__, except it prints the
calling convention.
Reviewers: majnemer
Differential Revision: http://reviews.llvm.org/D3311
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205780 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-08 18:13:24 +00:00