Reapply my previous asmprinter changes now with more testing and two
[oota-llvm.git] / lib / CodeGen / ELFWriter.cpp
index e041bd34eee98d26012983541fac43a3dbcbafdf..05b736147c46cef0d3394aff142677efa431d2c1 100644 (file)
@@ -601,7 +601,7 @@ void ELFWriter::EmitStringTable() {
 
     // Use the name mangler to uniquify the LLVM symbol.
     std::string Name;
-    if (I->GV) Name.append(Mang->getValueName(I->GV));
+    if (I->GV) Name.append(Mang->getMangledName(I->GV));
 
     if (Name.empty()) {
       I->NameIdx = 0;