aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-09 19:48:49 +0000
committerChris Lattner <sabre@nondot.org>2002-04-09 19:48:49 +0000
commit73e214244f2403b5ba0ef81b8839600f3c8ffebc (patch)
tree245e635c686ace9b5ebbcaf39d622a92f9db594e /lib/Linker
parentb62fc4a9b11662ec2c5fa190b513eae0a0810ce1 (diff)
downloadexternal_llvm-73e214244f2403b5ba0ef81b8839600f3c8ffebc.zip
external_llvm-73e214244f2403b5ba0ef81b8839600f3c8ffebc.tar.gz
external_llvm-73e214244f2403b5ba0ef81b8839600f3c8ffebc.tar.bz2
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
Diffstat (limited to 'lib/Linker')
-rw-r--r--lib/Linker/LinkModules.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index 9637f74..086c6c6 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.cpp
@@ -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