Further constify MDNode* references.

llvm-svn: 97252
This commit is contained in:
Dale Johannesen 2010-02-26 19:39:56 +00:00
parent e6b53047bb
commit 3e7df345c8
2 changed files with 3 additions and 3 deletions

View File

@ -127,7 +127,7 @@ public:
return *this;
}
const MachineInstrBuilder &addMetadata(MDNode *MD) const {
const MachineInstrBuilder &addMetadata(const MDNode *MD) const {
MI->addOperand(MachineOperand::CreateMetadata(MD));
return *this;
}

View File

@ -100,7 +100,7 @@ private:
MachineBasicBlock *MBB; // For MO_MachineBasicBlock.
const ConstantFP *CFP; // For MO_FPImmediate.
int64_t ImmVal; // For MO_Immediate.
MDNode *MD; // For MO_Metadata.
const MDNode *MD; // For MO_Metadata.
struct { // For MO_Register.
unsigned RegNo;
@ -467,7 +467,7 @@ public:
Op.setTargetFlags(TargetFlags);
return Op;
}
static MachineOperand CreateMetadata(MDNode *Meta) {
static MachineOperand CreateMetadata(const MDNode *Meta) {
MachineOperand Op(MachineOperand::MO_Metadata);
Op.Contents.MD = Meta;
return Op;