summaryrefslogtreecommitdiff
path: root/lib/VMCore/Module.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-02-16 10:28:10 +0000
committerBill Wendling <isanbard@gmail.com>2012-02-16 10:28:10 +0000
commite6bd7a805808a05e9869fbf067581855a8b2a2c2 (patch)
treebafaf20a470d82a64b6aa3bf686e4ad0bf900bed /lib/VMCore/Module.cpp
parent7d4deaae1f90eb4d45dfeeeb04af567f68ceaee0 (diff)
downloadllvm-e6bd7a805808a05e9869fbf067581855a8b2a2c2.tar.gz
llvm-e6bd7a805808a05e9869fbf067581855a8b2a2c2.tar.bz2
llvm-e6bd7a805808a05e9869fbf067581855a8b2a2c2.tar.xz
s/ModAttrBehavior/ModFlagBehavior/g to be consistent with how module flags are named elsewhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Module.cpp')
-rw-r--r--lib/VMCore/Module.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp
index cc6ae0e000..e8bc6dbe97 100644
--- a/lib/VMCore/Module.cpp
+++ b/lib/VMCore/Module.cpp
@@ -339,7 +339,7 @@ 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(ModAttrBehavior(Behavior->getZExtValue()),
+ Flags.push_back(ModuleFlagEntry(ModFlagBehavior(Behavior->getZExtValue()),
Key, Val));
}
}
@@ -361,7 +361,7 @@ NamedMDNode *Module::getOrInsertModuleFlagsMetadata() {
/// addModuleFlag - Add a module-level flag to the module-level flags
/// metadata. It will create the module-level flags named metadata if it doesn't
/// already exist.
-void Module::addModuleFlag(ModAttrBehavior Behavior, StringRef Key,
+void Module::addModuleFlag(ModFlagBehavior Behavior, StringRef Key,
Value *Val) {
Type *Int32Ty = Type::getInt32Ty(Context);
Value *Ops[3] = {
@@ -369,7 +369,7 @@ void Module::addModuleFlag(ModAttrBehavior Behavior, StringRef Key,
};
getOrInsertModuleFlagsMetadata()->addOperand(MDNode::get(Context, Ops));
}
-void Module::addModuleFlag(ModAttrBehavior Behavior, StringRef Key,
+void Module::addModuleFlag(ModFlagBehavior Behavior, StringRef Key,
uint32_t Val) {
Type *Int32Ty = Type::getInt32Ty(Context);
addModuleFlag(Behavior, Key, ConstantInt::get(Int32Ty, Val));