mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Use pointertype where appropriate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69b5ce90dc
commit
de51dd890f
@ -236,14 +236,14 @@ bool Interpreter::callMethod(const string &Name) {
|
||||
|
||||
static void *CreateArgv(const vector<string> &InputArgv) {
|
||||
// Pointers are 64 bits...
|
||||
uint64_t *Result = new uint64_t[InputArgv.size()+1];
|
||||
uint64_t *Result = new PointerTy[InputArgv.size()+1];
|
||||
|
||||
for (unsigned i = 0; i < InputArgv.size(); ++i) {
|
||||
unsigned Size = InputArgv[i].size()+1;
|
||||
char *Dest = new char[Size];
|
||||
copy(InputArgv[i].begin(), InputArgv[i].end(), Dest);
|
||||
Dest[Size-1] = 0;
|
||||
Result[i] = (uint64_t)Dest;
|
||||
Result[i] = (PointerTy)Dest;
|
||||
}
|
||||
|
||||
Result[InputArgv.size()] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user