aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-10-19 07:00:09 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-10-19 07:00:09 +0000
commit0d7d11d57f81d2318a730d7599bbdaa67a721150 (patch)
treed1febf6d72bf889a03956bd8657ec940369f9ac9
parentbd0052a0f26f04b8fcf59e8f645e5e33751e1f6e (diff)
downloadexternal_llvm-0d7d11d57f81d2318a730d7599bbdaa67a721150.zip
external_llvm-0d7d11d57f81d2318a730d7599bbdaa67a721150.tar.gz
external_llvm-0d7d11d57f81d2318a730d7599bbdaa67a721150.tar.bz2
Pacify -Wnon-virtual-dtor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166270 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/MC/MCParser/MCAsmParser.h1
-rw-r--r--lib/MC/MCParser/AsmParser.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h
index 554cdfa..fcf5b6a 100644
--- a/include/llvm/MC/MCParser/MCAsmParser.h
+++ b/include/llvm/MC/MCParser/MCAsmParser.h
@@ -34,6 +34,7 @@ class Twine;
/// MCAsmParserSemaCallback - Generic Sema callback for assembly parser.
class MCAsmParserSemaCallback {
public:
+ virtual ~MCAsmParserSemaCallback();
virtual void *LookupInlineAsmIdentifier(StringRef Name, void *Loc,
unsigned &Size) = 0;
};
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 6259c15..1573799 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -46,6 +46,8 @@ static cl::opt<bool>
FatalAssemblerWarnings("fatal-assembler-warnings",
cl::desc("Consider warnings as error"));
+MCAsmParserSemaCallback::~MCAsmParserSemaCallback() {}
+
namespace {
/// \brief Helper class for tracking macro definitions.