From 5f72a5ebc84a1935878b5b2d3166a505c520cdfc Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 13 Jan 2010 00:00:24 +0000 Subject: Further progration of metadata operands. The dumper doesn't really do what I want yet, but at least it doesn't crash now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93272 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineOperand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/llvm/CodeGen/MachineOperand.h') diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index 452c384b6a..907c25af7d 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -317,7 +317,7 @@ public: return Contents.OffsetedInfo.Val.SymbolName; } - MDNode *getMetadata() const { + const MDNode *getMetadata() const { assert(isMetadata() && "Wrong MachineOperand accessor"); return Contents.MD; } -- cgit v1.2.3