summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-07 22:47:44 +0000
committerChris Lattner <sabre@nondot.org>2006-06-07 22:47:44 +0000
commit5bd30fa3103abe4ee71b1e864cf82fab5be840fe (patch)
treefb5b700bdcc6e2b556444f914244e668e0ee2a64 /llvm
parent5ff8b962c8a9a406c7e1c4b3969e25f5c749896d (diff)
downloadbcm5719-llvm-5bd30fa3103abe4ee71b1e864cf82fab5be840fe.tar.gz
bcm5719-llvm-5bd30fa3103abe4ee71b1e864cf82fab5be840fe.zip
Add a virtual dtor to the InlineAsm class so that the principle method of
the class can be defined in InlineAsm.cpp llvm-svn: 28718
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/InlineAsm.h1
-rw-r--r--llvm/lib/VMCore/InlineAsm.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/InlineAsm.h b/llvm/include/llvm/InlineAsm.h
index 7463e188a76..97774986feb 100644
--- a/llvm/include/llvm/InlineAsm.h
+++ b/llvm/include/llvm/InlineAsm.h
@@ -35,6 +35,7 @@ class InlineAsm : public Value {
InlineAsm(const FunctionType *Ty, const std::string &AsmString,
const std::string &Constraints, bool hasSideEffects);
+ ~InlineAsm();
public:
/// InlineAsm::get - Return the the specified uniqued inline asm string.
diff --git a/llvm/lib/VMCore/InlineAsm.cpp b/llvm/lib/VMCore/InlineAsm.cpp
index b36d2128a61..0f820641b87 100644
--- a/llvm/lib/VMCore/InlineAsm.cpp
+++ b/llvm/lib/VMCore/InlineAsm.cpp
@@ -17,6 +17,12 @@
#include <cctype>
using namespace llvm;
+// Implement the first virtual method in this class in this file so the
+// InlineAsm vtable is emitted here.
+InlineAsm::~InlineAsm() {
+}
+
+
// NOTE: when memoizing the function type, we have to be careful to handle the
// case when the type gets refined.
OpenPOWER on IntegriCloud