From e8e8c5cf4dfb2cd8a2505db9d8d103661a153458 Mon Sep 17 00:00:00 2001 From: Zola Bridges Date: Mon, 26 Nov 2018 20:11:18 +0000 Subject: Revert "[clang][slh] add attribute for speculative load hardening" This reverts commit 801eaf91221ba6dd6996b29ff82659ad6359e885. llvm-svn: 347588 --- clang/test/CodeGen/attr-speculative-load-hardening.cpp | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 clang/test/CodeGen/attr-speculative-load-hardening.cpp (limited to 'clang/test/CodeGen/attr-speculative-load-hardening.cpp') diff --git a/clang/test/CodeGen/attr-speculative-load-hardening.cpp b/clang/test/CodeGen/attr-speculative-load-hardening.cpp deleted file mode 100644 index e2eb805cbb8..00000000000 --- a/clang/test/CodeGen/attr-speculative-load-hardening.cpp +++ /dev/null @@ -1,18 +0,0 @@ -// RUN: %clang_cc1 -std=c++11 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK1 -// RUN: %clang_cc1 -std=c++11 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s --check-prefix=CHECK2 -// -// Check that we set the attribute on each function. - -[[clang::speculative_load_hardening]] -int test1() { - return 42; -} - -int __attribute__((speculative_load_hardening)) test2() { - return 42; -} -// CHECK1: @{{.*}}test1{{.*}}[[SLH1:#[0-9]+]] -// CHECK1: attributes [[SLH1]] = { {{.*}}speculative_load_hardening{{.*}} } - -// CHECK2: @{{.*}}test2{{.*}}[[SLH2:#[0-9]+]] -// CHECK2: attributes [[SLH2]] = { {{.*}}speculative_load_hardening{{.*}} } -- cgit v1.2.3