aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorPuyan Lotfi <puyan@puyan.org>2018-01-10 00:56:48 +0000
committerPuyan Lotfi <puyan@puyan.org>2018-01-10 00:56:48 +0000
commitfe6c9cbb2440be652b9f7697bf945323e28a9fe4 (patch)
tree95121243a6264879b6225330f250d4dc9b1a0eaf /llvm/lib/CodeGen/MachineOperand.cpp
parent20db381b9056651dee80dd85c7a75894bb6bf31d (diff)
downloadllvm-fe6c9cbb2440be652b9f7697bf945323e28a9fe4.zip
llvm-fe6c9cbb2440be652b9f7697bf945323e28a9fe4.tar.gz
llvm-fe6c9cbb2440be652b9f7697bf945323e28a9fe4.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOperand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index ec81c63..b4bfa3f 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -752,7 +752,7 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
break;
case MachineOperand::MO_ExternalSymbol: {
StringRef Name = getSymbolName();
- OS << '$';
+ OS << '&';
if (Name.empty()) {
OS << "\"\"";
} else {