diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-30 06:27:31 +0000 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-30 06:27:31 +0000 |
commit | 17d7d145717cc9eedee5f9650f5188a0bf32a65f (patch) | |
tree | 86dbd32ddec472b67e9c6dc95c820643482a9ef5 /clang/lib/Frontend/MultiplexConsumer.cpp | |
parent | e9ff01b2a701713a82d09efab7649c11d0b4d1e6 (diff) | |
download | bcm5719-llvm-17d7d145717cc9eedee5f9650f5188a0bf32a65f.tar.gz bcm5719-llvm-17d7d145717cc9eedee5f9650f5188a0bf32a65f.zip |
For MS ABI, emit dllexport friend functions defined inline in class
...as that is apparently what MSVC does. This is an updated version of r263738,
which had to be reverted in r263740 due to test failures. The original version
had erroneously emitted functions that are defined in class templates, too (see
the updated "Handle friend functions" code in EmitDeferredDecls,
lib/CodeGen/ModuleBuilder.cpp). (The updated tests needed to be split out into
their own dllexport-ms-friend.cpp because of the CHECK-NOTs which would have
interfered with subsequent CHECK-DAGs in dllexport.cpp.)
Differential Revision: http://reviews.llvm.org/D18430
llvm-svn: 264841
Diffstat (limited to 'clang/lib/Frontend/MultiplexConsumer.cpp')
-rw-r--r-- | clang/lib/Frontend/MultiplexConsumer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/MultiplexConsumer.cpp b/clang/lib/Frontend/MultiplexConsumer.cpp index 31c9b5f23fc..ccda8c360a4 100644 --- a/clang/lib/Frontend/MultiplexConsumer.cpp +++ b/clang/lib/Frontend/MultiplexConsumer.cpp @@ -272,9 +272,9 @@ bool MultiplexConsumer::HandleTopLevelDecl(DeclGroupRef D) { return Continue; } -void MultiplexConsumer::HandleInlineMethodDefinition(CXXMethodDecl *D) { +void MultiplexConsumer::HandleInlineFunctionDefinition(FunctionDecl *D) { for (auto &Consumer : Consumers) - Consumer->HandleInlineMethodDefinition(D); + Consumer->HandleInlineFunctionDefinition(D); } void MultiplexConsumer::HandleCXXStaticMemberVarInstantiation(VarDecl *VD) { |