diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-02-11 17:49:28 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-11 17:49:28 +0000 |
commit | 2d8b2008c85a88dfbd98949a315432e6d5fa77ac (patch) | |
tree | f0948df0f95c454fda71535e00c7365495f71812 /clang/test/CodeGenCXX/dllimport-rtti.cpp | |
parent | 2ad1f851a12a5e8da59a2c6753a8ce2f133835ad (diff) | |
download | bcm5719-llvm-2d8b2008c85a88dfbd98949a315432e6d5fa77ac.tar.gz bcm5719-llvm-2d8b2008c85a88dfbd98949a315432e6d5fa77ac.zip |
Revert "Revert r260388 "[MS ABI] Never reference dllimport'd vtables""
This reverts commit r260449.
We would supress our emission of vftable definitions if we thought
another translation unit would provide the definition because we saw an
explicit instantiation declaration. This is not the case with
dllimport, we want to synthesize a definition of the vftable regardless.
This fixes PR26569.
llvm-svn: 260548
Diffstat (limited to 'clang/test/CodeGenCXX/dllimport-rtti.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/dllimport-rtti.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/dllimport-rtti.cpp b/clang/test/CodeGenCXX/dllimport-rtti.cpp index 071ce278a5b..4baee50fcff 100644 --- a/clang/test/CodeGenCXX/dllimport-rtti.cpp +++ b/clang/test/CodeGenCXX/dllimport-rtti.cpp @@ -4,7 +4,8 @@ struct __declspec(dllimport) S { virtual void f() {} } s; -// MSVC-DAG: @"\01??_7S@@6B@" = available_externally dllimport +// MSVC: [[VF_S:.*]] = private unnamed_addr constant [2 x i8*] +// MSVC-DAG: @"\01??_SS@@6B@" = unnamed_addr alias i8*, getelementptr inbounds ([2 x i8*], [2 x i8*]* [[VF_S]], i32 0, i32 1) // MSVC-DAG: @"\01??_R0?AUS@@@8" = linkonce_odr // MSVC-DAG: @"\01??_R1A@?0A@EA@S@@8" = linkonce_odr // MSVC-DAG: @"\01??_R2S@@8" = linkonce_odr |