mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Move FunctionArgument out of iOther.h into Argument.h and rename class to
be 'Argument' instead of FunctionArgument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "llvm/DerivedTypes.h"
|
||||
#include "llvm/iOther.h"
|
||||
#include "llvm/ConstantVals.h"
|
||||
#include "llvm/Argument.h"
|
||||
#include <iostream>
|
||||
using std::cerr;
|
||||
using std::string;
|
||||
@ -301,10 +302,10 @@ static bool LinkFunctionBody(Function *Dest, const Function *Src,
|
||||
for (Function::ArgumentListType::const_iterator
|
||||
I = Src->getArgumentList().begin(),
|
||||
E = Src->getArgumentList().end(); I != E; ++I) {
|
||||
const FunctionArgument *SMA = *I;
|
||||
const Argument *SMA = *I;
|
||||
|
||||
// Create the new method argument and add to the dest method...
|
||||
FunctionArgument *DMA = new FunctionArgument(SMA->getType(),SMA->getName());
|
||||
Argument *DMA = new Argument(SMA->getType(), SMA->getName());
|
||||
Dest->getArgumentList().push_back(DMA);
|
||||
|
||||
// Add a mapping to our local map
|
||||
|
Reference in New Issue
Block a user