]> granicus.if.org Git - llvm/commitdiff
[AsmParser] Remove unused partial template specialization.
authorDavide Italiano <davide@freebsd.org>
Thu, 22 Sep 2016 22:02:59 +0000 (22:02 +0000)
committerDavide Italiano <davide@freebsd.org>
Thu, 22 Sep 2016 22:02:59 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282206 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp

index 18f5bbe65998abf76ecd3e0464fb38319bfff69b..9c8b5f10c100375a8f519ead0018608f51c3d4ba 100644 (file)
@@ -3703,16 +3703,6 @@ bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDField &Result) {
   return false;
 }
 
-template <>
-bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDConstant &Result) {
-  Metadata *MD;
-  if (ParseValueAsMetadata(MD, "expected constant", nullptr))
-    return true;
-
-  Result.assign(cast<ConstantAsMetadata>(MD));
-  return false;
-}
-
 template <>
 bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDStringField &Result) {
   LocTy ValueLoc = Lex.getLoc();