aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-07 16:26:13 +0000
committerChris Lattner <sabre@nondot.org>2001-09-07 16:26:13 +0000
commitb12dcd1c30a9d6e64f9a7ee03589cb92c082a14b (patch)
tree3d6e6ba2b643c9b6cb4d5813992f548da94c24f6
parent118630d9248415d8139d7df4147649bdadacbae9 (diff)
* Fix long standing problems that would affect inlining. How could this have worked?
* Update to new setName interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@430 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/iOther.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/iOther.h b/include/llvm/iOther.h
index 5dc736510d..f2c542e0a8 100644
--- a/include/llvm/iOther.h
+++ b/include/llvm/iOther.h
@@ -66,7 +66,7 @@ public:
class CastInst : public Instruction {
CastInst(const CastInst &CI) : Instruction(CI.getType(), Cast) {
Operands.reserve(1);
- Operands.push_back(Use(Operands[0], this));
+ Operands.push_back(Use(CI.Operands[0], this));
}
public:
CastInst(Value *S, const Type *Ty, const string &Name = "")
@@ -97,7 +97,7 @@ public:
}
// Specialize setName to handle symbol table majik...
- virtual void setName(const string &name);
+ virtual void setName(const string &name, SymbolTable *ST = 0);
inline const Method *getParent() const { return Parent; }
inline Method *getParent() { return Parent; }
@@ -135,10 +135,10 @@ public:
// ShiftInst - This class represents left and right shift instructions.
//
class ShiftInst : public Instruction {
- ShiftInst(const ShiftInst &CI) : Instruction(CI.getType(), CI.getOpcode()) {
+ ShiftInst(const ShiftInst &SI) : Instruction(SI.getType(), SI.getOpcode()) {
Operands.reserve(2);
- Operands.push_back(Use(Operands[0], this));
- Operands.push_back(Use(Operands[1], this));
+ Operands.push_back(Use(SI.Operands[0], this));
+ Operands.push_back(Use(SI.Operands[1], this));
}
public:
ShiftInst(OtherOps Opcode, Value *S, Value *SA, const string &Name = "")