aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/InlineAsm.h
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-09 22:46:10 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-09 22:46:10 +0000
commited455c8fa25dd37a13b33f0afa66be03ac49b5bb (patch)
tree7bfa961474e22f830710a49d4ed015fe374967b7 /include/llvm/InlineAsm.h
parent46a6e79e602b23ea3478027d5bdd1f904aea7924 (diff)
downloadexternal_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.zip
external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.gz
external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.bz2
Devirtualizing Value destructor (PR889). Patch by Pawel Kunio!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/InlineAsm.h')
-rw-r--r--include/llvm/InlineAsm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/InlineAsm.h b/include/llvm/InlineAsm.h
index 20c184ac..bf7b419 100644
--- a/include/llvm/InlineAsm.h
+++ b/include/llvm/InlineAsm.h
@@ -36,9 +36,12 @@ class InlineAsm : public Value {
InlineAsm(const FunctionType *Ty, const std::string &AsmString,
const std::string &Constraints, bool hasSideEffects);
- virtual ~InlineAsm();
+protected:
+ static void destroyThis(InlineAsm*v) {
+ Value::destroyThis(v);
+ }
+ friend class Value;
public:
-
/// InlineAsm::get - Return the the specified uniqued inline asm string.
///
static InlineAsm *get(const FunctionType *Ty, const std::string &AsmString,