summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-01-13 00:00:24 +0000
committerDale Johannesen <dalej@apple.com>2010-01-13 00:00:24 +0000
commit7b1a7ed330212335bbaeca43a41dd7c2b19c4e1d (patch)
tree24b8844dd3b835e479e26dbc80e066e51718cf09 /llvm/lib/CodeGen
parent6fada5be91e2d684f9ac45e571745adf72bbd51e (diff)
downloadbcm5719-llvm-7b1a7ed330212335bbaeca43a41dd7c2b19c4e1d.tar.gz
bcm5719-llvm-7b1a7ed330212335bbaeca43a41dd7c2b19c4e1d.zip
Further progration of metadata operands. The
dumper doesn't really do what I want yet, but at least it doesn't crash now. llvm-svn: 93272
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index f9c20e64730..cf3e3e16014 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -34,6 +34,7 @@
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/FoldingSet.h"
+#include "llvm/Metadata.h"
using namespace llvm;
//===----------------------------------------------------------------------===//
@@ -278,10 +279,15 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
OS << '>';
break;
case MachineOperand::MO_BlockAddress:
- OS << "<";
+ OS << '<';
WriteAsOperand(OS, getBlockAddress(), /*PrintType=*/false);
OS << '>';
break;
+ case MachineOperand::MO_Metadata:
+ OS << '<';
+ WriteAsOperand(OS, getMetadata(), /*PrintType=*/false);
+ OS << '>';
+ break;
default:
llvm_unreachable("Unrecognized operand type");
}
OpenPOWER on IntegriCloud