Make MCAsmParserSemaCallback::LookupInlineAsmLabel a pure virtual function
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Mon, 22 Sep 2014 19:49:07 +0000 (19:49 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Mon, 22 Sep 2014 19:49:07 +0000 (19:49 +0000)
Summary:
r218229 made this function return a dummy nullptr in order to avoid
API breakage between clang/llvm.

Reviewers: rnk

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5432

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218266 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCParser/MCAsmParser.h

index b1e9faa842de0c1e482903819ea62e3cf505459a..ffe89e6fa1cf152b83cac7f1ccfa8a4ea72bd5b1 100644 (file)
@@ -55,8 +55,7 @@ public:
                                           InlineAsmIdentifierInfo &Info,
                                           bool IsUnevaluatedContext) = 0;
   virtual StringRef LookupInlineAsmLabel(StringRef Identifier, SourceMgr &SM,
-                                         SMLoc Location, bool Create)
-  { return nullptr; }
+                                         SMLoc Location, bool Create) = 0;
 
   virtual bool LookupInlineAsmField(StringRef Base, StringRef Member,
                                     unsigned &Offset) = 0;