summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-11-20 00:54:28 +0000
committerEric Christopher <echristo@gmail.com>2013-11-20 00:54:28 +0000
commitb88a94faaab2234d7da660a577b612754ecb9897 (patch)
treed49a6e36591cbdf4aecfc4617dfcacc79ddf85f1 /include/llvm/CodeGen
parent1f12b50b83acd277a62aaa6372d56a9334a03fe0 (diff)
downloadllvm-b88a94faaab2234d7da660a577b612754ecb9897.tar.gz
llvm-b88a94faaab2234d7da660a577b612754ecb9897.tar.bz2
llvm-b88a94faaab2234d7da660a577b612754ecb9897.tar.xz
Remove capability for polymorphic destruction from LexicalScope
and LexicalScopes, we're not using it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/LexicalScopes.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/llvm/CodeGen/LexicalScopes.h b/include/llvm/CodeGen/LexicalScopes.h
index 25f903c36c..af1f8470a4 100644
--- a/include/llvm/CodeGen/LexicalScopes.h
+++ b/include/llvm/CodeGen/LexicalScopes.h
@@ -45,13 +45,14 @@ typedef std::pair<const MachineInstr *, const MachineInstr *> InsnRange;
class LexicalScopes {
public:
LexicalScopes() : MF(NULL), CurrentFnLexicalScope(NULL) {}
- virtual ~LexicalScopes();
+ ~LexicalScopes();
- /// initialize - Scan machine function and constuct lexical scope nest.
- virtual void initialize(const MachineFunction &);
+ /// initialize - Scan machine function and constuct lexical scope nest, resets
+ /// the instance if necessary.
+ void initialize(const MachineFunction &);
/// releaseMemory - release memory.
- virtual void releaseMemory();
+ void reset();
/// empty - Return true if there is any lexical scope information available.
bool empty() { return CurrentFnLexicalScope == NULL; }
@@ -156,7 +157,6 @@ private:
/// LexicalScope - This class is used to track scope information.
///
class LexicalScope {
- virtual void anchor();
public:
LexicalScope(LexicalScope *P, const MDNode *D, const MDNode *I, bool A)
@@ -166,8 +166,6 @@ public:
Parent->addChild(this);
}
- virtual ~LexicalScope() {}
-
// Accessors.
LexicalScope *getParent() const { return Parent; }
const MDNode *getDesc() const { return Desc; }