aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineFunctionAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-26 04:35:26 +0000
committerChris Lattner <sabre@nondot.org>2010-01-26 04:35:26 +0000
commit01462baa9f30942d0e9c7fb3ceee167782d66c08 (patch)
treefb43db9cabf515f2751c5c0aeb5e362a63fbc017 /lib/CodeGen/MachineFunctionAnalysis.cpp
parent4102c4e6b666760afa27ac289b56f2943fe6df07 (diff)
downloadexternal_llvm-01462baa9f30942d0e9c7fb3ceee167782d66c08.zip
external_llvm-01462baa9f30942d0e9c7fb3ceee167782d66c08.tar.gz
external_llvm-01462baa9f30942d0e9c7fb3ceee167782d66c08.tar.bz2
make MachineFunction keep track of its ID and make
MachineFunctionAnalysis dole them out, instead of having AsmPrinter do both. Have the AsmPrinter::SetupMachineFunction method set the 'AsmPrinter::MF' variable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94509 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunctionAnalysis.cpp')
-rw-r--r--lib/CodeGen/MachineFunctionAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineFunctionAnalysis.cpp b/lib/CodeGen/MachineFunctionAnalysis.cpp
index f5febc5..8d87e3e 100644
--- a/lib/CodeGen/MachineFunctionAnalysis.cpp
+++ b/lib/CodeGen/MachineFunctionAnalysis.cpp
@@ -36,7 +36,7 @@ MachineFunctionAnalysis::~MachineFunctionAnalysis() {
bool MachineFunctionAnalysis::runOnFunction(Function &F) {
assert(!MF && "MachineFunctionAnalysis already initialized!");
- MF = new MachineFunction(&F, TM);
+ MF = new MachineFunction(&F, TM, NextFnNum++);
return false;
}