[llvm] r339419 - Rename the cfguard module flag to cfguardtable
Hans Wennborg via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 10 02:48:53 PDT 2018
Author: hans
Date: Fri Aug 10 02:48:53 2018
New Revision: 339419
URL: http://llvm.org/viewvc/llvm-project?rev=339419&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/test/CodeGen/WinCFGuard/cfguard.ll
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=339419&r1=339418&r2=339419&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Fri Aug 10 02:48:53 2018
@@ -363,7 +363,7 @@ bool AsmPrinter::doInitialization(Module
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));
Modified: llvm/trunk/test/CodeGen/WinCFGuard/cfguard.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/WinCFGuard/cfguard.ll?rev=339419&r1=339418&r2=339419&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/WinCFGuard/cfguard.ll (original)
+++ llvm/trunk/test/CodeGen/WinCFGuard/cfguard.ll Fri Aug 10 02:48:53 2018
@@ -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 "}
More information about the llvm-commits
mailing list