mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
|
||||
#include "llvm/Bytecode/Primitives.h"
|
||||
#include "llvm/SymTabValue.h"
|
||||
#include "llvm/Method.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/BasicBlock.h"
|
||||
#include "llvm/Instruction.h"
|
||||
#include "llvm/DerivedTypes.h"
|
||||
@ -143,9 +143,9 @@ struct BBPlaceHolderHelper : public BasicBlock {
|
||||
}
|
||||
};
|
||||
|
||||
struct MethPlaceHolderHelper : public Method {
|
||||
struct MethPlaceHolderHelper : public Function {
|
||||
MethPlaceHolderHelper(const Type *Ty)
|
||||
: Method(cast<const MethodType>(Ty), true) {
|
||||
: Function(cast<const FunctionType>(Ty), true) {
|
||||
}
|
||||
};
|
||||
|
||||
@ -155,9 +155,9 @@ typedef PlaceholderDef<MethPlaceHolderHelper> MethPHolder;
|
||||
|
||||
static inline unsigned getValueIDNumberFromPlaceHolder(Value *Def) {
|
||||
switch (Def->getType()->getPrimitiveID()) {
|
||||
case Type::LabelTyID: return ((BBPHolder*)Def)->getID();
|
||||
case Type::MethodTyID: return ((MethPHolder*)Def)->getID();
|
||||
default: return ((DefPHolder*)Def)->getID();
|
||||
case Type::LabelTyID: return ((BBPHolder*)Def)->getID();
|
||||
case Type::FunctionTyID: return ((MethPHolder*)Def)->getID();
|
||||
default: return ((DefPHolder*)Def)->getID();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user