From 643786213b34c7bd971c14db63dfbae8bb979997 Mon Sep 17 00:00:00 2001 From: Xiang1 Zhang Date: Tue, 12 Jul 2022 10:14:32 +0800 Subject: Revert "[X86] Support -mstack-protector-guard-symbol" This reverts commit efbaad1c4a526e91b034e56386e98a9268cd87b2. due to miss adding review info. --- llvm/lib/IR/Module.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'llvm/lib/IR/Module.cpp') diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index b51ea45..5cd74d5 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -714,18 +714,6 @@ void Module::setStackProtectorGuardReg(StringRef Reg) { addModuleFlag(ModFlagBehavior::Error, "stack-protector-guard-reg", ID); } -StringRef Module::getStackProtectorGuardSymbol() const { - Metadata *MD = getModuleFlag("stack-protector-guard-symbol"); - if (auto *MDS = dyn_cast_or_null(MD)) - return MDS->getString(); - return {}; -} - -void Module::setStackProtectorGuardSymbol(StringRef Symbol) { - MDString *ID = MDString::get(getContext(), Symbol); - addModuleFlag(ModFlagBehavior::Error, "stack-protector-guard-symbol", ID); -} - int Module::getStackProtectorGuardOffset() const { Metadata *MD = getModuleFlag("stack-protector-guard-offset"); if (auto *CI = mdconst::dyn_extract_or_null(MD)) -- cgit v1.1