about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2022-07-06 19:07:52 -0700
committerJubilee Young <workingjubilee@gmail.com>2022-07-06 22:44:54 -0700
commit92174f988b0cde631ffac0dbcc9f8fca413d566e (patch)
tree5f7cba58113c5d756c09e837a9375e558a55b061 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent8824d131619e58a38bde8bcf56401629b91a204a (diff)
downloadrust-92174f988b0cde631ffac0dbcc9f8fca413d566e.tar.gz
rust-92174f988b0cde631ffac0dbcc9f8fca413d566e.zip
Stop emitting CET prologues for naked functions
We can apply nocf_check as a hack for now.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index 5ebc2d6139f..2c8e804fff5 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -191,6 +191,7 @@ pub enum AttributeKind {
     StackProtect = 32,
     NoUndef = 33,
     SanitizeMemTag = 34,
+    NoCfCheck = 35,
 }
 
 /// LLVMIntPredicate