~ubuntu-branches/ubuntu/saucy/clamav/saucy

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-04-11 19:58:58 UTC
  • Revision ID: james.westby@ubuntu.com-20100411195858-exax6ky1jyzpa1h7
Tags: 0.96+dfsg-1ubuntu1
* Merge from Debian Unstable.  Remaining Ubuntu changes:
  - Drop initial signature definitions from clamav-base
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes
* Adjust debconf processing for new option to the default priority procuces
  valid configuration files

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
  MachineFunctionPass::getAnalysisUsage(AU);
83
83
}
84
84
 
 
85
static void VNInfoDTor(void* Ptr)
 
86
{
 
87
   reinterpret_cast<VNInfo*>(Ptr)->~VNInfo();
 
88
}
 
89
 
85
90
void LiveIntervals::releaseMemory() {
86
91
  // Free the live intervals themselves.
87
92
  for (DenseMap<unsigned, LiveInterval*>::iterator I = r2iMap_.begin(),
88
 
       E = r2iMap_.end(); I != E; ++I) {
89
 
    I->second->clear();
 
93
       E = r2iMap_.end(); I != E; ++I)
90
94
    delete I->second;
91
 
  }
92
 
  
 
95
 
93
96
  r2iMap_.clear();
94
97
 
95
98
  // Release VNInfo memroy regions after all VNInfo objects are dtor'd.
96
 
  VNInfoAllocator.Reset();
 
99
  VNInfoAllocator.Reset((unsigned)sizeof(VNInfo), alignof<VNInfo>(), VNInfoDTor);
97
100
  while (!CloneMIs.empty()) {
98
101
    MachineInstr *MI = CloneMIs.back();
99
102
    CloneMIs.pop_back();