Index: src/IceELFObjectWriter.cpp |
diff --git a/src/IceELFObjectWriter.cpp b/src/IceELFObjectWriter.cpp |
index 74568565ca60313cb6835bb99fcfd12b67468757..202ab0e208d65bea7abd5ed1ad9bfe8729870411 100644 |
--- a/src/IceELFObjectWriter.cpp |
+++ b/src/IceELFObjectWriter.cpp |
@@ -526,7 +526,7 @@ template <typename ConstType> void ELFObjectWriter::writeConstantPool(Type Ty) { |
auto Const = llvm::cast<ConstType>(C); |
std::string SymBuffer; |
llvm::raw_string_ostream SymStrBuf(SymBuffer); |
- Const->emitPoolLabel(SymStrBuf); |
+ Const->emitPoolLabel(SymStrBuf, &Ctx); |
std::string &SymName = SymStrBuf.str(); |
SymTab->createDefinedSym(SymName, STT_NOTYPE, STB_LOCAL, Section, |
OffsetInSection, SymbolSize); |