#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
-#include "llvm/ParameterAttributes.h"
+#include "llvm/Attributes.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
#include "llvm/Assembly/Parser.h"
delete IAD;
else if (Type == ConstAPInt)
delete ConstPoolInt;
+ else if (Type == ConstFPVal)
+ delete ConstPoolFP;
}
inline ValID copy() const {
case GlobalID : return '@' + utostr(Num);
case LocalName : return *Name;
case GlobalName : return *Name;
- case ConstAPInt : return ConstPoolInt->toString();
+ case ConstAPInt : return ConstPoolInt->toString(10);
case ConstFPVal : return ftostr(*ConstPoolFP);
case ConstNullVal : return "null";
case ConstUndefVal : return "undef";
struct TypeWithAttrs {
llvm::PATypeHolder *Ty;
- ParameterAttributes Attrs;
+ Attributes Attrs;
};
typedef std::vector<TypeWithAttrs> TypeWithAttrsList;
struct ArgListEntry {
- ParameterAttributes Attrs;
+ Attributes Attrs;
llvm::PATypeHolder *Ty;
std::string *Name;
};
struct ParamListEntry {
Value *Val;
- ParameterAttributes Attrs;
+ Attributes Attrs;
};
typedef std::vector<ParamListEntry> ParamList;