Add some no-op virtual destructors to silence GCC warning.

This commit is contained in:
David Nadlinger
2013-06-11 23:22:50 +02:00
parent 9a016a1002
commit 5b5ad8e0f7
2 changed files with 5 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ namespace llvm
// return rewrite rule
struct ABIRewrite
{
virtual ~ABIRewrite() {}
/// get a rewritten value back to its original form
virtual llvm::Value* get(Type* dty, DValue* v) = 0;
@@ -56,6 +58,8 @@ struct ABIRewrite
// interface called by codegen
struct TargetABI
{
virtual ~TargetABI() {}
/// Returns the ABI for the target we're compiling for
static TargetABI* getTarget();

View File

@@ -139,6 +139,7 @@ int AsmStatement::comeFrom()
struct AsmParserCommon
{
virtual ~AsmParserCommon() {}
virtual void run(Scope* sc, AsmStatement* asmst) = 0;
virtual std::string getRegName(int i) = 0;
};