[llvm-commits] [llvm] r49473 - /llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h
Gabor Greif
ggreif at gmail.com
Thu Apr 10 02:51:04 PDT 2008
Author: ggreif
Date: Thu Apr 10 04:51:03 2008
New Revision: 49473
URL: http://llvm.org/viewvc/llvm-project?rev=49473&view=rev
Log:
fix 'duplicate definition' linker errors by declaring methods as inline
Modified:
llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h
Modified: llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h?rev=49473&r1=49472&r2=49473&view=diff
==============================================================================
--- llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h (original)
+++ llvm/branches/ggreif/use-diet/include/llvm/InstrTypes.h Thu Apr 10 04:51:03 2008
@@ -182,15 +182,9 @@
}
/// Transparently provide more efficient getOperand methods.
- Value *getOperand(unsigned i) const; /*{
- assert(i < OperandTraits<BinaryOperator>::operands && "getOperand() out of range!");
- return OperandTraits<BinaryOperator>::op_begin(this)[i];
- }*/
- void setOperand(unsigned i, Value *Val); /*{
- assert(i < OperandTraits<BinaryOperator>::operands && "setOperand() out of range!");
- OperandTraits<BinaryOperator>::op_begin(this)[i] = Val;
- }*/
- unsigned getNumOperands() const;// { return OperandTraits<BinaryOperator>::operands; }
+ inline Value *getOperand(unsigned i) const;
+ inline void setOperand(unsigned i, Value *Val);
+ inline unsigned getNumOperands() const;
/// create() - Construct a binary instruction, given the opcode and the two
/// operands. Optionally (if InstBefore is specified) insert the instruction
More information about the llvm-commits
mailing list