diff options
author | Chris Lattner <sabre@nondot.org> | 2001-07-28 17:52:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-07-28 17:52:53 +0000 |
commit | 3f14c6689030ebd3dbcec45f129bb4fc067c9157 (patch) | |
tree | 91c52a9e5cbd4dbe25f2c264978a9363b396fa46 /llvm/lib/VMCore | |
parent | e0c6a09883ffc064bdb31b2bb897d0511668067c (diff) | |
download | bcm5719-llvm-3f14c6689030ebd3dbcec45f129bb4fc067c9157.tar.gz bcm5719-llvm-3f14c6689030ebd3dbcec45f129bb4fc067c9157.zip |
Remove some gross stuff
llvm-svn: 328
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r-- | llvm/lib/VMCore/iMemory.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/iMemory.cpp b/llvm/lib/VMCore/iMemory.cpp index 9c52da3abde..c793783b2f8 100644 --- a/llvm/lib/VMCore/iMemory.cpp +++ b/llvm/lib/VMCore/iMemory.cpp @@ -17,10 +17,9 @@ // A null type is returned if the indices are invalid for the specified // pointer type. // -/* static */ const Type* MemAccessInst::getIndexedType(const Type *Ptr, - const vector<ConstPoolVal*> &Idx, - bool AllowStructLeaf = false) { + const vector<ConstPoolVal*> &Idx, + bool AllowStructLeaf = false) { if (!Ptr->isPointerType()) return 0; // Type isn't a pointer type! // Get the type pointed to... @@ -45,7 +44,6 @@ const Type* MemAccessInst::getIndexedType(const Type *Ptr, } } -/* static */ unsigned int MemAccessInst::getIndexedOfsetForTarget(const Type *Ptr, const vector<ConstPoolVal*> &Idx, @@ -92,8 +90,7 @@ MemAccessInst::getIndexedOfsetForTarget(const Type *Ptr, LoadInst::LoadInst(Value *Ptr, const vector<ConstPoolVal*> &Idx, const string &Name = "") - : MemAccessInst(getIndexedType(Ptr->getType(), Idx), Load, Idx, Name) -{ + : MemAccessInst(getIndexedType(Ptr->getType(), Idx), Load, Idx, Name) { assert(getIndexedType(Ptr->getType(), Idx) && "Load operands invalid!"); Operands.reserve(1+Idx.size()); Operands.push_back(Use(Ptr, this)); |