summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitb7dee8a606496d52f02b7e9523487fcb89ae90de (patch)
tree4e89ead535549127d0e380e520b24132f6256764 /llvm/lib
parent9d7d5da6a1769056764236c78c9fff28b0ac300b (diff)
downloadbcm5719-llvm-b7dee8a606496d52f02b7e9523487fcb89ae90de.tar.gz
bcm5719-llvm-b7dee8a606496d52f02b7e9523487fcb89ae90de.zip
Remove capability for polymorphic destruction from LexicalScope
and LexicalScopes, we're not using it. llvm-svn: 195182
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/LexicalScopes.cpp11
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp1
2 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/LexicalScopes.cpp b/llvm/lib/CodeGen/LexicalScopes.cpp
index 006db6ccc9e..e58145826ff 100644
--- a/llvm/lib/CodeGen/LexicalScopes.cpp
+++ b/llvm/lib/CodeGen/LexicalScopes.cpp
@@ -25,10 +25,11 @@
#include "llvm/Support/FormattedStream.h"
using namespace llvm;
-LexicalScopes::~LexicalScopes() { releaseMemory(); }
+/// ~LexicalScopes - final cleanup after ourselves.
+LexicalScopes::~LexicalScopes() { reset(); }
-/// releaseMemory - release memory.
-void LexicalScopes::releaseMemory() {
+/// reset - Reset the instance so that it's prepared for another function.
+void LexicalScopes::reset() {
MF = NULL;
CurrentFnLexicalScope = NULL;
DeleteContainerSeconds(LexicalScopeMap);
@@ -39,7 +40,7 @@ void LexicalScopes::releaseMemory() {
/// initialize - Scan machine function and constuct lexical scope nest.
void LexicalScopes::initialize(const MachineFunction &Fn) {
- releaseMemory();
+ reset();
MF = &Fn;
SmallVector<InsnRange, 4> MIRanges;
DenseMap<const MachineInstr *, LexicalScope *> MI2ScopeMap;
@@ -311,8 +312,6 @@ bool LexicalScopes::dominates(DebugLoc DL, MachineBasicBlock *MBB) {
return Result;
}
-void LexicalScope::anchor() {}
-
/// dump - Print data structures.
void LexicalScope::dump(unsigned Indent) const {
#ifndef NDEBUG
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 9ada1b49288..52b7ee0f2a6 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -704,7 +704,6 @@ bool LDVImpl::runOnMachineFunction(MachineFunction &mf) {
bool Changed = collectDebugValues(mf);
computeIntervals();
DEBUG(print(dbgs()));
- LS.releaseMemory();
ModifiedMF = Changed;
return Changed;
}
OpenPOWER on IntegriCloud