mirror of https://github.com/microsoft/clang.git
Revert "[CodeGen] Propagate dllexport to thunks"
This reverts r306770, it causes LNK4102 warnings in MSVC builds. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa96f87e33
commit
813f275eef
|
@ -64,10 +64,6 @@ static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk,
|
|||
const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
|
||||
setThunkVisibility(CGM, MD, Thunk, ThunkFn);
|
||||
|
||||
// Propagate dllexport storage.
|
||||
if (MD->hasAttr<DLLExportAttr>())
|
||||
ThunkFn->setDLLStorageClass(llvm::GlobalValue::DLLExportStorageClass);
|
||||
|
||||
if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker())
|
||||
ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName()));
|
||||
}
|
||||
|
|
|
@ -53,12 +53,3 @@ USEMEMFUNC(outer<char>::inner, f)
|
|||
|
||||
// CHECK: declare dllimport {{.*}} @_ZN5outerIcE1fEv
|
||||
// CHECK: define {{.*}} @_ZN5outerIcE5inner1fEv
|
||||
|
||||
struct base {
|
||||
virtual ~base();
|
||||
};
|
||||
struct __declspec(dllexport) derived : public virtual base {
|
||||
virtual ~derived() {}
|
||||
};
|
||||
|
||||
// CHECK: define {{.*}} dllexport {{.*}} @_ZTv0_n12_N7derivedD0Ev
|
||||
|
|
Loading…
Reference in New Issue