MSVC always emits minimal CodeView metadata with compiler information, even when debug info is otherwise disabled. Other tools may rely on this metadata being present. For example, linkers use it to determine whether hotpatching is enabled for the object file.
9 lines
271 B
C
9 lines
271 B
C
// REQUIRES: x86-registered-target
|
|
// RUN: %clang --target=x86_64-windows -g -S -emit-llvm -o - %s | FileCheck %s
|
|
// RUN: %clang --target=x86_64-windows -S -emit-llvm -o - %s | FileCheck %s
|
|
int main (void) {
|
|
return 0;
|
|
}
|
|
|
|
// CHECK: i32 2, !"Debug Info Version", i32 3}
|