Index: src/IceTargetLoweringX8632.cpp |
diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp |
index 5a111b8faa8785fa755f759d215524952553c1ae..b0a08b0f05825a50e2295a8f6a9e5b478aa38130 100644 |
--- a/src/IceTargetLoweringX8632.cpp |
+++ b/src/IceTargetLoweringX8632.cpp |
@@ -1013,8 +1013,8 @@ template <typename T> void TargetX8632::emitConstantPool() const { |
assert(CharsPrinted >= 0 && |
(size_t)CharsPrinted < llvm::array_lengthof(buf)); |
(void)CharsPrinted; // avoid warnings if asserts are disabled |
- Str << ".L$" << Ty << "$" << Const->getPoolEntryID() << ":\n"; |
- Str << "\t" << T::AsmTag << "\t" << buf << "\t# " << T::TypeName << " " |
+ Const->emitPoolLabel(Str); |
+ Str << ":\n\t" << T::AsmTag << "\t" << buf << "\t# " << T::TypeName << " " |
<< Value << "\n"; |
} |
} |
@@ -4610,14 +4610,14 @@ template <> void ConstantFloat::emit(GlobalContext *Ctx) const { |
if (!ALLOW_DUMP) |
return; |
Ostream &Str = Ctx->getStrEmit(); |
- Str << ".L$" << IceType_f32 << "$" << getPoolEntryID(); |
+ emitPoolLabel(Str); |
} |
template <> void ConstantDouble::emit(GlobalContext *Ctx) const { |
if (!ALLOW_DUMP) |
return; |
Ostream &Str = Ctx->getStrEmit(); |
- Str << ".L$" << IceType_f64 << "$" << getPoolEntryID(); |
+ emitPoolLabel(Str); |
} |
void ConstantUndef::emit(GlobalContext *) const { |