diff options
author | Petr Hosek <phosek@chromium.org> | 2017-11-22 19:50:17 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-11-22 19:50:17 +0000 |
commit | 32c9de009a52a43db3a24c38f05d2543f3fd6911 (patch) | |
tree | 66ed42a4e1db787d5b9126656671c0dbb7a8969d /clang/lib/CodeGen/CGVTables.cpp | |
parent | 3295274725ba7d941468deb388375a66afe78baf (diff) | |
download | bcm5719-llvm-32c9de009a52a43db3a24c38f05d2543f3fd6911.tar.gz bcm5719-llvm-32c9de009a52a43db3a24c38f05d2543f3fd6911.zip |
Revert "[CodeGen] Fix vtable not receiving hidden visibility when using push(visibility)"
This reverts commit r318853: tests are failing on Windows bots
llvm-svn: 318866
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 2d9bf3bce92..67388ee208d 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -51,7 +51,7 @@ llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, const ThunkInfo &Thunk, llvm::Function *Fn) { - CGM.setGlobalVisibility(Fn, MD, ForDefinition); + CGM.setGlobalVisibility(Fn, MD); } static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, @@ -730,7 +730,7 @@ CodeGenVTables::GenerateConstructionVTable(const CXXRecordDecl *RD, // Create the variable that will hold the construction vtable. llvm::GlobalVariable *VTable = CGM.CreateOrReplaceCXXRuntimeVariable(Name, VTType, Linkage); - CGM.setGlobalVisibility(VTable, RD, ForDefinition); + CGM.setGlobalVisibility(VTable, RD); // V-tables are always unnamed_addr. VTable->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global); |