aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-14 17:53:23 +0000
committerChris Lattner <sabre@nondot.org>2010-03-14 17:53:23 +0000
commit3b9d6216a41cfd43759e787db26d797e1f0ba0a8 (patch)
tree70ab8ae438a0996ff774bc8fd0eafc4c5b6d69e8 /include/llvm/CodeGen/AsmPrinter.h
parentc441e97220eb8f3fc062d8bdf04d261165428673 (diff)
downloadexternal_llvm-3b9d6216a41cfd43759e787db26d797e1f0ba0a8.zip
external_llvm-3b9d6216a41cfd43759e787db26d797e1f0ba0a8.tar.gz
external_llvm-3b9d6216a41cfd43759e787db26d797e1f0ba0a8.tar.bz2
fix AsmPrinter::GetBlockAddressSymbol to always return a unique
label instead of trying to form one based on the BB name (which causes collisions if the name is empty). This fixes PR6608 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index a909bd6..a36105f 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -337,8 +337,7 @@ namespace llvm {
/// GetBlockAddressSymbol - Return the MCSymbol used to satisfy BlockAddress
/// uses of the specified basic block.
MCSymbol *GetBlockAddressSymbol(const BlockAddress *BA) const;
- MCSymbol *GetBlockAddressSymbol(const Function *F,
- const BasicBlock *BB) const;
+ MCSymbol *GetBlockAddressSymbol(const BasicBlock *BB) const;
/// EmitBasicBlockStart - This method prints the label for the specified
/// MachineBasicBlock, an alignment (if present) and a comment describing