diff options
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index 9b95550..eae4e69 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -721,17 +721,6 @@ void Module::setStackProtectorGuardOffset(int Offset) { addModuleFlag(ModFlagBehavior::Error, "stack-protector-guard-offset", Offset); } -unsigned Module::getOverrideStackAlignment() const { - Metadata *MD = getModuleFlag("override-stack-alignment"); - if (auto *CI = mdconst::dyn_extract_or_null<ConstantInt>(MD)) - return CI->getZExtValue(); - return 0; -} - -void Module::setOverrideStackAlignment(unsigned Align) { - addModuleFlag(ModFlagBehavior::Error, "override-stack-alignment", Align); -} - void Module::setSDKVersion(const VersionTuple &V) { SmallVector<unsigned, 3> Entries; Entries.push_back(V.getMajor()); |