mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Tidy up #includes, deleting a bunch of unnecessary #includes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61715 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -14,8 +14,11 @@
|
||||
#define DEBUG_TYPE "escape-analysis"
|
||||
#include "llvm/Analysis/EscapeAnalysis.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Analysis/AliasAnalysis.h"
|
||||
#include "llvm/Support/InstIterator.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include <vector>
|
||||
using namespace llvm;
|
||||
@ -25,6 +28,12 @@ static RegisterPass<EscapeAnalysis> X("escape-analysis",
|
||||
"Pointer Escape Analysis", true, true);
|
||||
|
||||
|
||||
void EscapeAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.addRequiredTransitive<TargetData>();
|
||||
AU.addRequiredTransitive<AliasAnalysis>();
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
|
||||
/// runOnFunction - Precomputation for escape analysis. This collects all know
|
||||
/// "escape points" in the def-use graph of the function. These are
|
||||
/// instructions which allow their inputs to escape from the current function.
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include "llvm/InstrTypes.h"
|
||||
#include "llvm/Support/Streams.h"
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <map>
|
||||
using namespace llvm;
|
||||
|
||||
|
Reference in New Issue
Block a user