Fix GCC error caused by r228211
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Feb 2015 22:13:28 +0000 (22:13 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 4 Feb 2015 22:13:28 +0000 (22:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228213 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AsmParser/LLParser.cpp

index 427b38ee3b8b6f3c6866cd2f025e35254ef6c20b..9e02e9edb6a4ebf8ac6e7f9bf76605a55b074937 100644 (file)
@@ -2960,6 +2960,8 @@ struct MDFieldList : public MDFieldImpl<SmallVector<Metadata *, 4>> {
 
 } // end namespace
 
+namespace llvm {
+
 template <>
 bool LLParser::ParseMDField(LocTy Loc, StringRef Name,
                             MDUnsignedField &Result) {
@@ -3024,6 +3026,8 @@ bool LLParser::ParseMDField(LocTy Loc, StringRef Name, MDFieldList &Result) {
   return false;
 }
 
+} // end namespace llvm
+
 template <class ParserTy>
 bool LLParser::ParseMDFieldsImplBody(ParserTy parseField) {
   do {