mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-15 13:16:07 +00:00

This extension emits the guard cf table without inserting the instrumentation. Currently that's what clang-cl does with /guard:cf anyway, but this allows a user to request that explicitly. Differential Revision: https://reviews.llvm.org/D50513 llvm-svn: 339420
7 lines
179 B
C
7 lines
179 B
C
// RUN: %clang_cc1 -cfguard -emit-llvm %s -o - | FileCheck %s
|
|
|
|
void f() {}
|
|
|
|
// Check that the cfguardtable metadata flag gets set on the module.
|
|
// CHECK: !"cfguardtable", i32 1}
|