]> granicus.if.org Git - clang/commitdiff
Remove the HiddenWeakTemplateVTables CodeGen option. It's currently unused.
authorDouglas Gregor <dgregor@apple.com>
Wed, 24 Oct 2012 14:11:55 +0000 (14:11 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 24 Oct 2012 14:11:55 +0000 (14:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166561 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CGVTables.cpp
lib/CodeGen/CodeGenModule.cpp

index 1eb7dddb01e570ec86b3d0e2f9e9ab65b586bf9c..558e6f11113baee938130bdf3adecbf1e4cc6ce6 100644 (file)
@@ -52,9 +52,6 @@ CODEGENOPT(EmitOpenCLArgMetadata , 1, 0) ///< Emit OpenCL kernel arg metadata.
 CODEGENOPT(ForbidGuardVariables , 1, 0) ///< Issue errors if C++ guard variables
                                         ///< are required.
 CODEGENOPT(FunctionSections  , 1, 0) ///< Set when -ffunction-sections is enabled.
-CODEGENOPT(HiddenWeakTemplateVTables , 1, 0) ///< Emit weak vtables and RTTI for
-                                             ///< template classes with hidden 
-                                             ///< visibility
 CODEGENOPT(HiddenWeakVTables , 1, 0) ///< Emit weak vtables, RTTI, and thunks with
                                      ///< hidden visibility.
 CODEGENOPT(InstrumentFunctions , 1, 0) ///< Set when -finstrument-functions is
index 4aeed1b00e0d0bb13a02d52b67c97b8e05feb4c6..a1a661be840f18d6fd399e38c946bce89d23c756 100644 (file)
@@ -156,8 +156,7 @@ static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD,
 
   case TSK_ExplicitSpecialization:
   case TSK_ImplicitInstantiation:
-    if (!CGM.getCodeGenOpts().HiddenWeakTemplateVTables)
-      return;
+    return;
     break;
   }
 
index 5a1ff6e978b3ddf335140c801836fb6a4acf28ca..5425eaf64eb266d01ec24c4a408db0cd1372e4c5 100644 (file)
@@ -353,9 +353,7 @@ void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV,
   // to deal with mixed-visibility symbols.
   case TSK_ExplicitSpecialization:
   case TSK_ImplicitInstantiation:
-    if (!CodeGenOpts.HiddenWeakTemplateVTables)
-      return;
-    break;
+    return;
   }
 
   // If there's a key function, there may be translation units