mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 01:23:14 +01:00
Add some no-op virtual destructors to silence GCC warning.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user