summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-04 19:28:59 +0000
committerChris Lattner <sabre@nondot.org>2010-04-04 19:28:59 +0000
commitaf8df264952698cfde59d99c96d4a0da9e4f5afa (patch)
treed77a6d0c2416b3b491f9d273758c3a3ba3d35730
parentc021572511f08372ae52fe8e31d3c307cab448fd (diff)
downloadllvm-af8df264952698cfde59d99c96d4a0da9e4f5afa.tar.gz
llvm-af8df264952698cfde59d99c96d4a0da9e4f5afa.tar.bz2
llvm-af8df264952698cfde59d99c96d4a0da9e4f5afa.tar.xz
resolve a fixme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100346 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
-rw-r--r--test/CodeGen/X86/personality.ll4
2 files changed, 3 insertions, 8 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 5c63cf2882..26277652f1 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1350,12 +1350,7 @@ void AsmPrinter::printOffset(int64_t Offset, raw_ostream &OS) const {
/// GetTempSymbol - Return the MCSymbol corresponding to the assembler
/// temporary label with the specified stem and unique ID.
MCSymbol *AsmPrinter::GetTempSymbol(StringRef Name, unsigned ID) const {
- // FIXME: REMOVE this. However, there is stuff in EH that passes counters in
- // here that can be zero.
-
- //assert(ID && "Should use GetTempSymbol if no ID");
- if (ID == 0) return GetTempSymbol(Name);
- return OutContext.GetOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix())+
+ return OutContext.GetOrCreateSymbol(Twine(MAI->getPrivateGlobalPrefix()) +
Name + Twine(ID));
}
diff --git a/test/CodeGen/X86/personality.ll b/test/CodeGen/X86/personality.ll
index 5acf04cc06..6789bb0c0f 100644
--- a/test/CodeGen/X86/personality.ll
+++ b/test/CodeGen/X86/personality.ll
@@ -38,10 +38,10 @@ declare void @__gxx_personality_v0()
declare void @__cxa_end_catch()
-; X64: Leh_frame_common_begin:
+; X64: Leh_frame_common_begin0:
; X64: .long ___gxx_personality_v0@GOTPCREL+4
-; X32: Leh_frame_common_begin:
+; X32: Leh_frame_common_begin0:
; X32: .long L___gxx_personality_v0$non_lazy_ptr-
; ....