summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-08-14 21:55:58 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-08-14 21:55:58 +0000
commit577d271a75d3a7716df0e38648acef94e842575d (patch)
tree2a46f0e021be683f4ef61500f9af4b244975920c /llvm/lib/CodeGen/MIRPrinter.cpp
parent52ae023f9dd4322f46b22c7d8464044dfca2cde4 (diff)
downloadbcm5719-llvm-577d271a75d3a7716df0e38648acef94e842575d.tar.gz
bcm5719-llvm-577d271a75d3a7716df0e38648acef94e842575d.zip
MIR Serialization: Serialize the '.cfi_same_value' CFI directive.
llvm-svn: 245103
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index d70b5c412f1..248db52790e 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -794,6 +794,12 @@ static void printCFIRegister(unsigned DwarfReg, raw_ostream &OS,
void MIPrinter::print(const MCCFIInstruction &CFI,
const TargetRegisterInfo *TRI) {
switch (CFI.getOperation()) {
+ case MCCFIInstruction::OpSameValue:
+ OS << ".cfi_same_value ";
+ if (CFI.getLabel())
+ OS << "<mcsymbol> ";
+ printCFIRegister(CFI.getRegister(), OS, TRI);
+ break;
case MCCFIInstruction::OpOffset:
OS << ".cfi_offset ";
if (CFI.getLabel())
OpenPOWER on IntegriCloud