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:
Reid Kleckner 2017-06-30 16:11:49 +00:00
parent fa96f87e33
commit 813f275eef
2 changed files with 0 additions and 13 deletions

View File

@ -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()));
}

View File

@ -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