aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-21 08:13:27 +0000
committerChris Lattner <sabre@nondot.org>2005-11-21 08:13:27 +0000
commit77bc22866aa212144ceec3590ea2df11585a7f0c (patch)
tree0b96ae9f9591fc4b688a5ff030a3558fe9749d12 /lib/CodeGen/AsmPrinter.cpp
parentd5ab7e1c54c961b447395f17b569acdf18776c5a (diff)
increment the function number in SetupMachineFunction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24461 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 3b648a7611..86c3f4bb95 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -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.