diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-07-13 00:43:39 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-07-13 00:43:39 +0000 |
commit | c16c44714b1193bb1fdc4f18bdb6f0a2f47c83f7 (patch) | |
tree | bb2f6024270ee2c4a28f74a8119a8fd4c0081c4e /clang/test/CodeGenCXX/mangle-ms-back-references.cpp | |
parent | fa74085f60a68cfe5cc6b4f8d5a9cd7914eaff37 (diff) | |
download | bcm5719-llvm-c16c44714b1193bb1fdc4f18bdb6f0a2f47c83f7.tar.gz bcm5719-llvm-c16c44714b1193bb1fdc4f18bdb6f0a2f47c83f7.zip |
[ms-cxxabi] Don't consider function templates for name backrefs
They don't seem to be used for back references, presumably because a
function template is unlikely to reoccur, while a class template name
may reoccur as a type.
This fixes a mangling issue for llvm::hash_combine() in Hashing.h.
Reviewers: timurrrr
Differential Revision: http://llvm-reviews.chandlerc.com/D1078
llvm-svn: 186233
Diffstat (limited to 'clang/test/CodeGenCXX/mangle-ms-back-references.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle-ms-back-references.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/mangle-ms-back-references.cpp b/clang/test/CodeGenCXX/mangle-ms-back-references.cpp index 5f93590cf2a..4f173268883 100644 --- a/clang/test/CodeGenCXX/mangle-ms-back-references.cpp +++ b/clang/test/CodeGenCXX/mangle-ms-back-references.cpp @@ -61,3 +61,8 @@ void h2(void (*f_ptr)(void *), void *arg) {} PInt3Func h3(PInt3Func x, PInt3Func y, int* z) { return 0; } // CHECK: "\01?h3@@YAP6APAHPAH0@ZP6APAH00@Z10@Z" + +namespace foo { +void foo() { } +// CHECK: "\01?foo@0@YAXXZ" +} |