mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
Use the enum instead of 'unsigned'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc2037be2c
commit
426f215732
@ -180,10 +180,10 @@ public:
|
||||
enum ModAttrBehavior { Error = 1, Warning = 2, Require = 3, Override = 4 };
|
||||
|
||||
struct ModuleFlagEntry {
|
||||
unsigned Behavior;
|
||||
ModAttrBehavior Behavior;
|
||||
MDString *Key;
|
||||
Value *Val;
|
||||
ModuleFlagEntry(unsigned B, MDString *K, Value *V)
|
||||
ModuleFlagEntry(ModAttrBehavior B, MDString *K, Value *V)
|
||||
: Behavior(B), Key(K), Val(V) {}
|
||||
};
|
||||
|
||||
|
@ -339,7 +339,8 @@ getModuleFlagsMetadata(SmallVectorImpl<ModuleFlagEntry> &Flags) const {
|
||||
ConstantInt *Behavior = cast<ConstantInt>(Flag->getOperand(0));
|
||||
MDString *Key = cast<MDString>(Flag->getOperand(1));
|
||||
Value *Val = Flag->getOperand(2);
|
||||
Flags.push_back(ModuleFlagEntry(Behavior->getZExtValue(), Key, Val));
|
||||
Flags.push_back(ModuleFlagEntry(ModAttrBehavior(Behavior->getZExtValue()),
|
||||
Key, Val));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user