projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72aaa3c
)
add builder support for mcsymbol operands.
author
Chris Lattner
<sabre@nondot.org>
Sat, 13 Mar 2010 08:16:25 +0000
(08:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 13 Mar 2010 08:16:25 +0000
(08:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98434
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineInstrBuilder.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineInstrBuilder.h
b/include/llvm/CodeGen/MachineInstrBuilder.h
index 47f7cf7b3f4f26f8197be13d7afb799e3440073c..9baa592f96e076043e4ee5379ee305f75cf14933 100644
(file)
--- a/
include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/
include/llvm/CodeGen/MachineInstrBuilder.h
@@
-131,6
+131,11
@@
public:
MI->addOperand(MachineOperand::CreateMetadata(MD));
return *this;
}
+
+ const MachineInstrBuilder &addSym(MCSymbol *Sym) const {
+ MI->addOperand(MachineOperand::CreateMCSymbol(Sym));
+ return *this;
+ }
};
/// BuildMI - Builder interface. Specify how to create the initial instruction