[PATCH] D23674: Do not set __guard_local to hidden for OpenBSD SSP

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 11:34:33 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL279449: [SSP] Do not set __guard_local to hidden for OpenBSD SSP (authored by timshen).

Changed prior to commit:
  https://reviews.llvm.org/D23674?vs=68554&id=68891#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23674

Files:
  llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp

Index: llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
+++ llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
@@ -1817,9 +1817,7 @@
   if (getTargetMachine().getTargetTriple().isOSOpenBSD()) {
     Module &M = *IRB.GetInsertBlock()->getParent()->getParent();
     PointerType *PtrTy = Type::getInt8PtrTy(M.getContext());
-    auto Guard = cast<GlobalValue>(M.getOrInsertGlobal("__guard_local", PtrTy));
-    Guard->setVisibility(GlobalValue::HiddenVisibility);
-    return Guard;
+    return M.getOrInsertGlobal("__guard_local", PtrTy);
   }
   return nullptr;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23674.68891.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160822/25c5f8d9/attachment-0001.bin>


More information about the llvm-commits mailing list