aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-28 17:52:53 +0000
committerChris Lattner <sabre@nondot.org>2001-07-28 17:52:53 +0000
commitca112b361e7d9faab2171935532663f639e400e9 (patch)
treeaf194aeadb595f9e0def71535de09f5c81319352 /lib
parent3868521e223848244211a58e668589a3a1b93494 (diff)
downloadexternal_llvm-ca112b361e7d9faab2171935532663f639e400e9.zip
external_llvm-ca112b361e7d9faab2171935532663f639e400e9.tar.gz
external_llvm-ca112b361e7d9faab2171935532663f639e400e9.tar.bz2
Remove some gross stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/iMemory.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp
index 9c52da3..c793783 100644
--- a/lib/VMCore/iMemory.cpp
+++ b/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));