llvm.org GIT mirror llvm / 09533a4
upgrade and MC'ize a few uses of makeNameProper. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93310 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
207207 O << Name;
208208 } else {
209209 assert(ACPV->isExtSymbol() && "unrecognized constant pool value");
210 Mang->makeNameProper(TmpNameStr, ACPV->getSymbol());
211 O << TmpNameStr.str();
210 Mang->getNameWithPrefix(TmpNameStr, ACPV->getSymbol());
211 OutContext.GetOrCreateSymbol(TmpNameStr.str())->print(O, MAI);
212212 }
213213
214214 if (ACPV->hasModifier()) O << "(" << ACPV->getModifier() << ")";
392392 case MachineOperand::MO_ExternalSymbol: {
393393 bool isCallOp = Modifier && !strcmp(Modifier, "call");
394394 SmallString<128> NameStr;
395 Mang->makeNameProper(NameStr, MO.getSymbolName());
396
397 O << NameStr.str();
395 Mang->getNameWithPrefix(NameStr, MO.getSymbolName());
396 OutContext.GetOrCreateSymbol(NameStr.str())->print(O, MAI);
397
398398 if (isCallOp && Subtarget->isTargetELF() &&
399399 TM.getRelocationModel() == Reloc::PIC_)
400400 O << "(PLT)";