aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-13 08:16:25 +0000
committerChris Lattner <sabre@nondot.org>2010-03-13 08:16:25 +0000
commit3889fac428d559e5a0b6bcbcd8a55047d3e0663e (patch)
tree3167a6975207a3fe013e7a2be8ec0a46adeffc6b /include/llvm/CodeGen/MachineInstrBuilder.h
parent72aaa3c79869870bd16402ed1f37b80a5e71c800 (diff)
downloadexternal_llvm-3889fac428d559e5a0b6bcbcd8a55047d3e0663e.zip
external_llvm-3889fac428d559e5a0b6bcbcd8a55047d3e0663e.tar.gz
external_llvm-3889fac428d559e5a0b6bcbcd8a55047d3e0663e.tar.bz2
add builder support for mcsymbol operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index 47f7cf7..9baa592 100644
--- 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