From efed1a7b694ae1f2f619eb50146850d770cf6618 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 16 May 2014 00:09:31 +0000 Subject: [PATCH] test/CodeGenCXX/dllexport.cpp: we already correctly emit b() even when it's not used, because CodeGenModule::EmitGlobal consults ASTContext::DeclMustBeEmitted via CodeGenModule::MayDeferGeneration. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208936 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/dllexport.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/CodeGenCXX/dllexport.cpp b/test/CodeGenCXX/dllexport.cpp index fe9806893b..372ed8a0b2 100644 --- a/test/CodeGenCXX/dllexport.cpp +++ b/test/CodeGenCXX/dllexport.cpp @@ -18,8 +18,7 @@ struct S { }; void user() { - // FIXME: dllexported functions must be emitted even if they're not referenced in this TU. a(); - b(); + // FIXME: dllexported methods must be emitted even if they're not referenced in this TU. &S::a; } -- 2.40.0