mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 06:18:56 -04: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}
|