resolve a fixme.
authorChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 19:28:59 +0000 (19:28 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 Apr 2010 19:28:59 +0000 (19:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100346 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/personality.ll

index 5c63cf2882196564a09aeb0d5d2fec1637fe5d5c..26277652f14a255a11967bdce032f3f73e0dc479 100644 (file)
@@ -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));
 }
 
index 5acf04cc06c10b4a857f798bd75799717f654a1a..6789bb0c0fbe2a5c860ee367b40d1d9c9b47e564 100644 (file)
@@ -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-
 ; ....