Add a virtual destructor and give vtable a home.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98376 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2010-03-12 20:41:29 +00:00
parent 9c59268197
commit a30b181c20
2 changed files with 3 additions and 0 deletions

View File

@ -106,6 +106,7 @@ namespace llvm {
virtual bool isFoldable(unsigned SizeCIOp, unsigned SizeArgOp,
bool isString) const = 0;
public:
virtual ~SimplifyFortifiedLibCalls();
bool fold(CallInst *CI, const TargetData *TD);
};
}

View File

@ -343,6 +343,8 @@ void llvm::EmitFWrite(Value *Ptr, Value *Size, Value *File,
CI->setCallingConv(Fn->getCallingConv());
}
SimplifyFortifiedLibCalls::~SimplifyFortifiedLibCalls() { }
bool SimplifyFortifiedLibCalls::fold(CallInst *CI, const TargetData *TD) {
this->CI = CI;
StringRef Name = CI->getCalledFunction()->getName();