increment the function number in SetupMachineFunction
authorChris Lattner <sabre@nondot.org>
Mon, 21 Nov 2005 08:13:27 +0000 (08:13 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Nov 2005 08:13:27 +0000 (08:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24461 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index 3b648a761161222ecb2d7581497559fdeaeef81e..86c3f4bb959e190d0e338bca0e7a7109bd72a2c3 100644 (file)
@@ -51,6 +51,7 @@ bool AsmPrinter::doFinalization(Module &M) {
 void AsmPrinter::SetupMachineFunction(MachineFunction &MF) {
   // What's my mangled name?
   CurrentFnName = Mang->getValueName(MF.getFunction());
+  IncrementFunctionNumber();
 }
 
 // EmitAlignment - Emit an alignment directive to the specified power of two.