[llvm-commits] [llvm] r98376 - in /llvm/trunk: include/llvm/Transforms/Utils/BuildLibCalls.h lib/Transforms/Utils/BuildLibCalls.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Mar 12 12:41:29 PST 2010
Author: d0k
Date: Fri Mar 12 14:41:29 2010
New Revision: 98376
URL: http://llvm.org/viewvc/llvm-project?rev=98376&view=rev
Log:
Add a virtual destructor and give vtable a home.
Modified:
llvm/trunk/include/llvm/Transforms/Utils/BuildLibCalls.h
llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
Modified: llvm/trunk/include/llvm/Transforms/Utils/BuildLibCalls.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/BuildLibCalls.h?rev=98376&r1=98375&r2=98376&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/BuildLibCalls.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/BuildLibCalls.h Fri Mar 12 14:41:29 2010
@@ -106,6 +106,7 @@
virtual bool isFoldable(unsigned SizeCIOp, unsigned SizeArgOp,
bool isString) const = 0;
public:
+ virtual ~SimplifyFortifiedLibCalls();
bool fold(CallInst *CI, const TargetData *TD);
};
}
Modified: llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp?rev=98376&r1=98375&r2=98376&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BuildLibCalls.cpp Fri Mar 12 14:41:29 2010
@@ -343,6 +343,8 @@
CI->setCallingConv(Fn->getCallingConv());
}
+SimplifyFortifiedLibCalls::~SimplifyFortifiedLibCalls() { }
+
bool SimplifyFortifiedLibCalls::fold(CallInst *CI, const TargetData *TD) {
this->CI = CI;
StringRef Name = CI->getCalledFunction()->getName();
More information about the llvm-commits
mailing list