OSDN Git Service

Add a virtual dtor to the InlineAsm class so that the principle method of
authorChris Lattner <sabre@nondot.org>
Wed, 7 Jun 2006 22:47:44 +0000 (22:47 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 7 Jun 2006 22:47:44 +0000 (22:47 +0000)
the class can be defined in InlineAsm.cpp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28718 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/InlineAsm.h
lib/VMCore/InlineAsm.cpp

index 7463e18..9777498 100644 (file)
@@ -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.
index b36d212..0f82064 100644 (file)
 #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.