mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Rename ConstPoolVal -> Constant
Rename ConstPool* -> Constant* Rename ConstPoolVals.h -> ConstantVals.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1407 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/iMemory.h"
|
||||
#include "llvm/ConstPoolVals.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// MemAccessInst Implementation
|
||||
@@ -37,20 +36,23 @@ const Type* MemAccessInst::getIndexedType(const Type *Ptr,
|
||||
return CurIDX == Idx.size() ? Ptr : 0;
|
||||
}
|
||||
|
||||
const vector<ConstPoolVal*> MemAccessInst::getIndicesBROKEN() const {
|
||||
|
||||
#if 1
|
||||
#include "llvm/ConstantVals.h"
|
||||
const vector<Constant*> MemAccessInst::getIndicesBROKEN() const {
|
||||
cerr << "MemAccessInst::getIndices() does not do what you want it to. Talk"
|
||||
<< " to Chris about this. We can phase it out after the paper.\n";
|
||||
|
||||
vector<ConstPoolVal*> RetVal;
|
||||
vector<Constant*> RetVal;
|
||||
|
||||
// THIS CODE WILL FAIL IF A NON CONSTANT INDEX IS USED AS AN ARRAY INDEX
|
||||
// THIS IS WHY YOU SHOULD NOT USE THIS FUNCTION ANY MORE!!!
|
||||
for (unsigned i = getFirstIndexOperandNumber(); i < getNumOperands(); ++i)
|
||||
RetVal.push_back(cast<ConstPoolVal>(getOperand(i)));
|
||||
RetVal.push_back(cast<Constant>(getOperand(i)));
|
||||
|
||||
return RetVal;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// LoadInst Implementation
|
||||
|
||||
Reference in New Issue
Block a user