mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-19 13:38:56 +00:00
Remove some gross stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3868521e22
commit
ca112b361e
@ -17,10 +17,9 @@
|
|||||||
// A null type is returned if the indices are invalid for the specified
|
// A null type is returned if the indices are invalid for the specified
|
||||||
// pointer type.
|
// pointer type.
|
||||||
//
|
//
|
||||||
/* static */
|
|
||||||
const Type* MemAccessInst::getIndexedType(const Type *Ptr,
|
const Type* MemAccessInst::getIndexedType(const Type *Ptr,
|
||||||
const vector<ConstPoolVal*> &Idx,
|
const vector<ConstPoolVal*> &Idx,
|
||||||
bool AllowStructLeaf = false) {
|
bool AllowStructLeaf = false) {
|
||||||
if (!Ptr->isPointerType()) return 0; // Type isn't a pointer type!
|
if (!Ptr->isPointerType()) return 0; // Type isn't a pointer type!
|
||||||
|
|
||||||
// Get the type pointed to...
|
// Get the type pointed to...
|
||||||
@ -45,7 +44,6 @@ const Type* MemAccessInst::getIndexedType(const Type *Ptr,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* static */
|
|
||||||
unsigned int
|
unsigned int
|
||||||
MemAccessInst::getIndexedOfsetForTarget(const Type *Ptr,
|
MemAccessInst::getIndexedOfsetForTarget(const Type *Ptr,
|
||||||
const vector<ConstPoolVal*> &Idx,
|
const vector<ConstPoolVal*> &Idx,
|
||||||
@ -92,8 +90,7 @@ MemAccessInst::getIndexedOfsetForTarget(const Type *Ptr,
|
|||||||
|
|
||||||
LoadInst::LoadInst(Value *Ptr, const vector<ConstPoolVal*> &Idx,
|
LoadInst::LoadInst(Value *Ptr, const vector<ConstPoolVal*> &Idx,
|
||||||
const string &Name = "")
|
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!");
|
assert(getIndexedType(Ptr->getType(), Idx) && "Load operands invalid!");
|
||||||
Operands.reserve(1+Idx.size());
|
Operands.reserve(1+Idx.size());
|
||||||
Operands.push_back(Use(Ptr, this));
|
Operands.push_back(Use(Ptr, this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user