summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-08-10 09:48:53 +0000
committerHans Wennborg <hans@hanshq.net>2018-08-10 09:48:53 +0000
commitd4090be340fbbc3e490f339cded51954716f53f5 (patch)
tree8aec1c51bb0465c7778883060476c83405506fdd /llvm
parent4e9def57c735e0e8d8a7491ae9cf1edb0b912a96 (diff)
downloadbcm5719-llvm-d4090be340fbbc3e490f339cded51954716f53f5.tar.gz
bcm5719-llvm-d4090be340fbbc3e490f339cded51954716f53f5.zip
Rename the cfguard module flag to cfguardtable
The previous name sounds like it inserts cfguard implementation, but it really just emits the table of address-taken functions. Change the name to better reflect that. Clang will be updated in the next commit. llvm-svn: 339419
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
-rw-r--r--llvm/test/CodeGen/WinCFGuard/cfguard.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 9bbc77b3056..0271e21e59c 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -363,7 +363,7 @@ bool AsmPrinter::doInitialization(Module &M) {
DWARFGroupName, DWARFGroupDescription));
if (mdconst::extract_or_null<ConstantInt>(
- MMI->getModule()->getModuleFlag("cfguard")))
+ MMI->getModule()->getModuleFlag("cfguardtable")))
Handlers.push_back(HandlerInfo(new WinCFGuard(this), CFGuardName,
CFGuardDescription, DWARFGroupName,
DWARFGroupDescription));
diff --git a/llvm/test/CodeGen/WinCFGuard/cfguard.ll b/llvm/test/CodeGen/WinCFGuard/cfguard.ll
index 128bab15b51..b0a71936a84 100644
--- a/llvm/test/CodeGen/WinCFGuard/cfguard.ll
+++ b/llvm/test/CodeGen/WinCFGuard/cfguard.ll
@@ -157,6 +157,6 @@ attributes #2 = { nounwind }
!llvm.module.flags = !{!0, !1}
!llvm.ident = !{!2}
-!0 = !{i32 2, !"cfguard", i32 1}
+!0 = !{i32 2, !"cfguardtable", i32 1}
!1 = !{i32 1, !"wchar_size", i32 2}
!2 = !{!"clang version 6.0.0 "}
OpenPOWER on IntegriCloud