diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-01 19:08:07 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-01 19:08:07 +0000 |
commit | 6d9148ce3d42a3f81c2828754a720278061c7aa7 (patch) | |
tree | 63ff3d64cf40b611ef7ea19e4813d6c8886dc163 /include/llvm/CodeGen/MachineInstrBuilder.h | |
parent | 30d7b650aa443b78cfa1e918bb0d5eaf288b0a2f (diff) |
Add machine operand for MDNodes. This will be used to communicate debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74628 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 29e90098c9..c6a6679c1b 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -107,6 +107,13 @@ public: return *this; } + const MachineInstrBuilder &addMetadata(MDNode *N, + int64_t Offset = 0, + unsigned char TargetFlags = 0) const { + MI->addOperand(MachineOperand::CreateMDNode(N, Offset, TargetFlags)); + return *this; + } + const MachineInstrBuilder &addExternalSymbol(const char *FnName, int64_t Offset = 0, unsigned char TargetFlags = 0) const { |