[SymbolFile] Remove unused function. NFCI.
authorDavide Italiano <davide@freebsd.org>
Fri, 16 Nov 2018 19:48:23 +0000 (19:48 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 16 Nov 2018 19:48:23 +0000 (19:48 +0000)
llvm-svn: 347084

lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp

index 790562f..9310e7c 100644 (file)
@@ -433,24 +433,6 @@ static bool IsClassRecord(TypeLeafKind kind) {
   }
 }
 
-static PDB_SymType GetPdbSymType(TpiStream &tpi, TypeIndex ti) {
-  if (ti.isSimple()) {
-    if (ti.getSimpleMode() == SimpleTypeMode::Direct)
-      return PDB_SymType::BuiltinType;
-    return PDB_SymType::PointerType;
-  }
-
-  CVType cvt = tpi.getType(ti);
-  TypeLeafKind kind = cvt.kind();
-  if (kind != LF_MODIFIER)
-    return CVTypeToPDBType(kind);
-
-  // If this is an LF_MODIFIER, look through it to get the kind that it
-  // modifies.  Note that it's not possible to have an LF_MODIFIER that
-  // modifies another LF_MODIFIER, although this would handle that anyway.
-  return GetPdbSymType(tpi, LookThroughModifierRecord(cvt));
-}
-
 static bool IsCVarArgsFunction(llvm::ArrayRef<TypeIndex> args) {
   if (args.empty())
     return false;