diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-08-24 19:26:05 +0000 |
---|---|---|
committer | Sami Tolvanen <samitolvanen@google.com> | 2022-08-24 19:30:13 +0000 |
commit | a79060e275440ccd8d403d5af5fb5b9395ea3fac (patch) | |
tree | 7d29f75ff6c6a0cd2ceba3945e7d7cc0951c1d79 /clang/lib/CodeGen/CodeGenModule.h | |
parent | dda38786534af733786c681e0c47b863e0626a0e (diff) | |
download | llvm-a79060e275440ccd8d403d5af5fb5b9395ea3fac.zip llvm-a79060e275440ccd8d403d5af5fb5b9395ea3fac.tar.gz llvm-a79060e275440ccd8d403d5af5fb5b9395ea3fac.tar.bz2 |
Revert "KCFI sanitizer"
This reverts commit 67504c95494ff05be2a613129110c9bcf17f6c13 as using
PointerEmbeddedInt to store 32 bits breaks 32-bit arm builds.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 1c23ffe..f57afdc 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1440,9 +1440,6 @@ public: /// Generate a cross-DSO type identifier for MD. llvm::ConstantInt *CreateCrossDsoCfiTypeId(llvm::Metadata *MD); - /// Generate a KCFI type identifier for T. - llvm::ConstantInt *CreateKCFITypeId(QualType T); - /// Create a metadata identifier for the given type. This may either be an /// MDString (for external identifiers) or a distinct unnamed MDNode (for /// internal identifiers). @@ -1461,12 +1458,6 @@ public: void CreateFunctionTypeMetadataForIcall(const FunctionDecl *FD, llvm::Function *F); - /// Set type metadata to the given function. - void setKCFIType(const FunctionDecl *FD, llvm::Function *F); - - /// Emit KCFI type identifier constants and remove unused identifiers. - void finalizeKCFITypes(); - /// Whether this function's return type has no side effects, and thus may /// be trivially discarded if it is unused. bool MayDropFunctionReturn(const ASTContext &Context, QualType ReturnType); |