From fe6c9cbb2440be652b9f7697bf945323e28a9fe4 Mon Sep 17 00:00:00 2001 From: Puyan Lotfi Date: Wed, 10 Jan 2018 00:56:48 +0000 Subject: [MIR] Repurposing '$' sigil used by external symbols. Replacing with '&'. Planning to add support for named vregs. This puts is in a conundrum since physregs are named as well. To rectify this we need to use a sigil other than '%' for physregs in MIR. We've settled on using '$' for physregs but first we must repurpose it from external symbols using it, which is what this commit is all about. We think '&' will have familiar semantics for C/C++ users. llvm-svn: 322146 --- llvm/lib/CodeGen/MIRPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp') diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index cd3ec2ef353..90515a6a9a2 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -863,7 +863,7 @@ void MIPrinter::print(const LLVMContext &Context, const TargetInstrInfo &TII, OS, /*PrintType=*/false, MST); break; case PseudoSourceValue::ExternalSymbolCallEntry: - OS << "call-entry $"; + OS << "call-entry &"; printLLVMNameWithoutPrefix( OS, cast(PVal)->getSymbol()); break; -- cgit v1.2.3